mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-24 22:25:05 +02:00
mini update help ans add sync
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`) || [];
|
||||
|
||||
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user