Merge pull request #17 from eilandert/main

remove if empty database statement
This commit is contained in:
Skylar Grant 2023-07-31 10:02:01 -04:00 committed by GitHub
commit 94c3244016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View File

@ -8,7 +8,8 @@
"rankings": [], "rankings": [],
"devTeamIds": [ "devTeamIds": [
"481933290912350209", "481933290912350209",
"269249959973355520" "269249959973355520",
"448606738669633536"
], ],
"ownerId": "481933290912350209" "ownerId": "481933290912350209"
} }

View File

@ -75,7 +75,7 @@
"reset": "All guild configuration information has been removed from the database.", "reset": "All guild configuration information has been removed from the database.",
"resetError": "There was a problem deleting your guild information, contact @voidf1sh#0420 for help.", "resetError": "There was a problem deleting your guild information, contact @voidf1sh#0420 for help.",
"noRoleMenu": "A role menu has not been created for this guild yet. Run </setup rolemenu:0> to create a role menu.", "noRoleMenu": "A role menu has not been created for this guild yet. Run </setup rolemenu:0> to create a role menu.",
"optout": "Notification relay has been disabled, to re-enable the relay use </notifications update:0> with no options." "optout": "Notification relay has been disabled, to re-enable the relay use </relay update:0> with no options."
}, },
"notifications": { "notifications": {
"water": "is ready to be watered again!", "water": "is ready to be watered again!",

View File

@ -56,11 +56,6 @@ module.exports = {
db.end(); db.end();
return; return;
} }
if (res.length == 0) {
reject("There is no database entry for your guild yet. Try running /setup");
db.end();
return;
}
row = res[0]; row = res[0];
const guildInfo = new GuildInfo() const guildInfo = new GuildInfo()
.setIds(row.guild_id, row.owner_id) .setIds(row.guild_id, row.owner_id)