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.

This commit is contained in:
Thijs Eilander 2023-06-18 22:51:35 +02:00
parent a1386dd688
commit 7c56381141
1 changed files with 1 additions and 6 deletions

View File

@ -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 = {
});
});
}
};
};