From 9016abe36798ce646e36bca5e4b159fe472e7706 Mon Sep 17 00:00:00 2001 From: *x1 Date: Mon, 24 Jun 2024 17:31:36 +0200 Subject: [PATCH] Configuration des perm par cmd --- commands/bot control/blacklistAdd.js | 2 +- commands/bot control/blacklistRemove.js | 2 +- commands/bot control/say.js | 2 +- commands/bot control/sayMorse.js | 2 +- commands/bot control/sayUnMorse.js | 2 +- commands/bot control/servers.js | 2 +- commands/bot control/uptime.js | 2 +- commands/gestion/add.js | 2 +- commands/gestion/ban.js | 2 +- commands/gestion/drop.js | 2 +- commands/gestion/kick.js | 2 +- commands/gestion/mute.js | 2 +- commands/gestion/perms.js | 2 +- commands/gestion/remove.js | 2 +- commands/gestion/reset-user.js | 2 +- commands/gestion/set.js | 2 +- commands/gestion/setRolePerm.js | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/commands/bot control/blacklistAdd.js b/commands/bot control/blacklistAdd.js index 4c96f89..cfd2131 100644 --- a/commands/bot control/blacklistAdd.js +++ b/commands/bot control/blacklistAdd.js @@ -7,7 +7,7 @@ module.exports = { description: 'Met un utilisateur comme blacklist (sur ce serveur).', emote: '🛡️', utilisation: '<@membre>', - permission: 10, + permission: 6, async execute(message, args, client) { diff --git a/commands/bot control/blacklistRemove.js b/commands/bot control/blacklistRemove.js index 788fd79..7a49003 100644 --- a/commands/bot control/blacklistRemove.js +++ b/commands/bot control/blacklistRemove.js @@ -7,7 +7,7 @@ module.exports = { description: 'Met un utilisateur comme non-blacklist (sur ce serveur).', emote: '🛡️', utilisation: '<@membre>', - permission: 10, + permission: 6, async execute(message, args, client) { diff --git a/commands/bot control/say.js b/commands/bot control/say.js index 0eed8a1..a8c00d9 100644 --- a/commands/bot control/say.js +++ b/commands/bot control/say.js @@ -5,7 +5,7 @@ module.exports = { description: 'Permet de dire un message sous le noms du bot', emote: '💬', utilisation: '', - permission: 0, + permission: 2, async execute(message, args, client) { message.delete() diff --git a/commands/bot control/sayMorse.js b/commands/bot control/sayMorse.js index 235c20f..365f67e 100644 --- a/commands/bot control/sayMorse.js +++ b/commands/bot control/sayMorse.js @@ -5,7 +5,7 @@ module.exports = { description: 'Permet de dire un message sous le noms du bot', emote: '💬', utilisation: '', - permission: 0, + permission: 2, async execute(message, args, client) { message.delete() diff --git a/commands/bot control/sayUnMorse.js b/commands/bot control/sayUnMorse.js index f18cdaa..670a8b4 100644 --- a/commands/bot control/sayUnMorse.js +++ b/commands/bot control/sayUnMorse.js @@ -5,7 +5,7 @@ module.exports = { description: 'Permet de dire un message sous le noms du bot', emote: '💬', utilisation: '', - permission: 0, + permission: 2, async execute(message, args, client) { message.delete() diff --git a/commands/bot control/servers.js b/commands/bot control/servers.js index e32f759..4171ec1 100644 --- a/commands/bot control/servers.js +++ b/commands/bot control/servers.js @@ -6,7 +6,7 @@ module.exports = { description: 'Affiche la liste des serveurs où le bot est présent', emote: '🌐', utilisation: '', - permission: 10, + permission: 5, async execute(message, args, client) { const embed = new EmbedBuilder() diff --git a/commands/bot control/uptime.js b/commands/bot control/uptime.js index f7d93b5..9ef90c4 100644 --- a/commands/bot control/uptime.js +++ b/commands/bot control/uptime.js @@ -6,7 +6,7 @@ module.exports = { description: 'Affiche depuis combien de temps le bot est en ligne.', emote: '⏱️', utilisation: '', - permission: 0, + permission: 5, async execute(message, args, client) { const uptime = client.uptime; diff --git a/commands/gestion/add.js b/commands/gestion/add.js index 40f4a31..a092900 100644 --- a/commands/gestion/add.js +++ b/commands/gestion/add.js @@ -7,7 +7,7 @@ module.exports = { description: 'Ajoute de l\'argent de votre compte en banque ou de votre poche ou de votre réputation.', emote: '💰', utilisation: ' [@membre]', - permission: 10, + permission: 5, async execute(message, args, client) { const user = await new Promise((resolve, reject) => { diff --git a/commands/gestion/ban.js b/commands/gestion/ban.js index 95fca6b..851fbb3 100644 --- a/commands/gestion/ban.js +++ b/commands/gestion/ban.js @@ -6,7 +6,7 @@ module.exports = { description: 'permet de ban un membre', emote: '⏱️', utilisation: '<@membre> ', - permission: 0, + permission: 5, async execute(message, args, client) { const authorPerms = message.channel.permissionsFor(message.author) diff --git a/commands/gestion/drop.js b/commands/gestion/drop.js index 65d1e57..3bf28ee 100644 --- a/commands/gestion/drop.js +++ b/commands/gestion/drop.js @@ -6,7 +6,7 @@ module.exports = { description: 'Donne des coins au premier qui appuie sur un bouton.', emote: '🪙', utilisation: '', - permission: 0, + permission: 5, async execute(message, args, client) { if (isNaN(args[0])) return message.reply('La somme dois etre un nombre...') diff --git a/commands/gestion/kick.js b/commands/gestion/kick.js index 92c2d0a..b002c9f 100644 --- a/commands/gestion/kick.js +++ b/commands/gestion/kick.js @@ -6,7 +6,7 @@ module.exports = { description: 'permet d\'expulser un membre', emote: '⏱️', utilisation: '<@membre> ', - permission: 0, + permission: 5, async execute(message, args, client) { const authorPerms = message.channel.permissionsFor(message.author) diff --git a/commands/gestion/mute.js b/commands/gestion/mute.js index 15e4c24..3ea51c5 100644 --- a/commands/gestion/mute.js +++ b/commands/gestion/mute.js @@ -6,7 +6,7 @@ module.exports = { description: 'permet de mute un membre', emote: '⏱️', utilisation: '<@membre> ', - permission: 0, + permission: 4, async execute(message, args, client) { const authorPerms = message.channel.permissionsFor(message.author) diff --git a/commands/gestion/perms.js b/commands/gestion/perms.js index c4b08fc..3689eba 100644 --- a/commands/gestion/perms.js +++ b/commands/gestion/perms.js @@ -7,7 +7,7 @@ module.exports = { description: 'Affiche les permission des rôles pour utiliser les commandes du bot.', emote: '⏱️', utilisation: '', - permission: 10, + permission: 3, async execute(message, args, client) { const perms = await new Promise((resolve, reject) => { diff --git a/commands/gestion/remove.js b/commands/gestion/remove.js index add97e4..c655120 100644 --- a/commands/gestion/remove.js +++ b/commands/gestion/remove.js @@ -7,7 +7,7 @@ module.exports = { description: 'Retire de l\'argent de votre compte en banque ou de votre poche ou de votre réputation.', emote: '💰', utilisation: ' [@membre]', - permission: 10, + permission: 5, async execute(message, args, client) { const user = await new Promise((resolve, reject) => { diff --git a/commands/gestion/reset-user.js b/commands/gestion/reset-user.js index 7e0a989..db3699c 100644 --- a/commands/gestion/reset-user.js +++ b/commands/gestion/reset-user.js @@ -7,7 +7,7 @@ module.exports = { description: 'Reinitialise toutes les données d\'un utilisateur (sur ce serveur).', emote: '💰', utilisation: '<@membre>', - permission: 10, + permission: 5, async execute(message, args, client) { diff --git a/commands/gestion/set.js b/commands/gestion/set.js index fc8fda2..b7b999a 100644 --- a/commands/gestion/set.js +++ b/commands/gestion/set.js @@ -7,7 +7,7 @@ module.exports = { description: 'Defini la solde d\'un membre (a utiliser pour remplacer un `NaN` dans le `&me`).', emote: '💰', utilisation: ' [@membre]', - permission: 10, + permission: 5, async execute(message, args, client) { const user = await new Promise((resolve, reject) => { diff --git a/commands/gestion/setRolePerm.js b/commands/gestion/setRolePerm.js index 44cb4e9..e88a155 100644 --- a/commands/gestion/setRolePerm.js +++ b/commands/gestion/setRolePerm.js @@ -7,7 +7,7 @@ module.exports = { description: 'Ajoute les permissions d\'un rôle pour utiliser les commandes du bot.', emote: '⏱️', utilisation: '<@role|None> <1|2|3|4|5>', - permission: 10, + permission: 5, async execute(message, args, client) { if (!args[0] || !args[1]) {