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:
parent
a1386dd688
commit
7c56381141
@ -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