add util commande

This commit is contained in:
VALOU3336
2024-02-16 23:47:07 +01:00
parent 172e2345b2
commit 8de41e806c
4 changed files with 155 additions and 1 deletions
+1 -1
View File
@@ -8,9 +8,9 @@ module.exports = {
emote: '📚',
utilisation: 'help [commande]',
async execute(message, args, client) {
const defaultprefix = "+";
const botId = client.user.id;
const guildId = message.guild.id;
const defaultprefix = "+";
let mainPrefix = await GestionDb.get(`${botId}.prefix`);
let serverPrefix = await GestionDb.get(`${botId}.${guildId}.prefix`);
const prefix = serverPrefix !== undefined ? serverPrefix : mainPrefix !== undefined ? mainPrefix : defaultprefix;