From 7c563811414d8311c8efd8b20d7c489da68b9d96 Mon Sep 17 00:00:00 2001 From: Thijs Eilander Date: Sun, 18 Jun 2023 22:51:35 +0200 Subject: [PATCH] due to this test, when starting with a new database the bot exits upon start, so there is no possibility to add a new entry in the database at all. --- modules/dbfn.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/dbfn.js b/modules/dbfn.js index 4d127ea..49bdd07 100755 --- a/modules/dbfn.js +++ b/modules/dbfn.js @@ -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) @@ -304,4 +299,4 @@ module.exports = { }); }); } -}; \ No newline at end of file +};