mini update help ans add sync

This commit is contained in:
VALOU3336
2024-02-27 11:01:28 +01:00
parent da89e5bd2f
commit 16a446c9c1
12 changed files with 19 additions and 11 deletions
+4 -1
View File
@@ -52,6 +52,7 @@ module.exports = {
game: [],
gestion: [],
utils: [],
other: [],
};
let liste = [];
@@ -62,8 +63,10 @@ module.exports = {
}
}
for (const command of liste) {
if (command.category) {
if (command.category && categories[command.category]) {
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
} else {
categories['other'].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
}
}
let totalCommands = liste.length
+3
View File
@@ -4,6 +4,9 @@ const PrevnameDb = new db.table("prevname");
module.exports = {
name: 'prevname',
description: 'Affiche tous les pseudos précédents et permet de les supprimer',
category: 'utils',
emote: '🔍',
utilisation: 'prevname',
async execute(message, args) {
const userId = message.author.id;
const nameChanges = PrevnameDb.get(`${userId}.nameChanges`) || [];
+3
View File
@@ -4,6 +4,9 @@ const { EmbedBuilder } = require('discord.js');
module.exports = {
name: 'weather',
description: 'Affiche les informations météorologiques d\'une ville',
category: 'utils',
emote: '☀️',
utilisation: 'weather [ville]',
async execute(message, args) {
if (!args.length) {
return message.channel.send('Veuillez fournir une ville.');