mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-08 23:31:56 +02:00
Update tedit.js (pour simplifier l'usage de la cmd)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user