Update tedit.js (pour simplifier l'usage de la cmd)

This commit is contained in:
*x1
2024-06-07 17:19:24 +02:00
parent 0081bae7e5
commit 7751a7db87
+13 -1
View File
@@ -11,7 +11,19 @@ module.exports = {
async execute(message, args, client) {
if (args.length > 0) {
const subCommand = args[0].toLowerCase();
let subCommand = args[0].toLowerCase();
subCommand = subCommand.replice('n', 'name')
subCommand = subCommand.replice('nom', 'name')
subCommand = subCommand.replice('noms', 'name')
subCommand = subCommand.replice('banniere', 'banner')
subCommand = subCommand.replice('bannière', 'banner')
subCommand = subCommand.replice('b', 'banner')
subCommand = subCommand.replice('i', 'icon')
subCommand = subCommand.replice('p', 'icon')
subCommand = subCommand.replice('photo', 'icon')
subCommand = subCommand.replice('icone', 'icon')
subCommand = subCommand.replice('d', 'description')
const newValue = args.slice(1).join(' ');
if (['name', 'banner', 'icon', 'description'].includes(subCommand)) {