Merge pull request #17 from eilandert/main
remove if empty database statement
This commit is contained in:
commit
94c3244016
@ -8,7 +8,8 @@
|
||||
"rankings": [],
|
||||
"devTeamIds": [
|
||||
"481933290912350209",
|
||||
"269249959973355520"
|
||||
"269249959973355520",
|
||||
"448606738669633536"
|
||||
],
|
||||
"ownerId": "481933290912350209"
|
||||
}
|
@ -75,7 +75,7 @@
|
||||
"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.",
|
||||
"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": {
|
||||
"water": "is ready to be watered again!",
|
||||
|
@ -56,11 +56,6 @@ module.exports = {
|
||||
db.end();
|
||||
return;
|
||||
}
|
||||
if (res.length == 0) {
|
||||
reject("There is no database entry for your guild yet. Try running /setup");
|
||||
db.end();
|
||||
return;
|
||||
}
|
||||
row = res[0];
|
||||
const guildInfo = new GuildInfo()
|
||||
.setIds(row.guild_id, row.owner_id)
|
||||
|
Loading…
Reference in New Issue
Block a user