Merge pull request #17 from eilandert/main
remove if empty database statement
This commit is contained in:
commit
94c3244016
@ -8,7 +8,8 @@
|
|||||||
"rankings": [],
|
"rankings": [],
|
||||||
"devTeamIds": [
|
"devTeamIds": [
|
||||||
"481933290912350209",
|
"481933290912350209",
|
||||||
"269249959973355520"
|
"269249959973355520",
|
||||||
|
"448606738669633536"
|
||||||
],
|
],
|
||||||
"ownerId": "481933290912350209"
|
"ownerId": "481933290912350209"
|
||||||
}
|
}
|
||||||
|
@ -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!",
|
||||||
@ -85,4 +85,4 @@
|
|||||||
"growATree": "972637072991068220"
|
"growATree": "972637072991068220"
|
||||||
},
|
},
|
||||||
"temp": {}
|
"temp": {}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
@ -304,4 +299,4 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user