From 7bf9ae00ee67c5799d749e43ab0c0504d5792feb Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Fri, 20 Nov 2020 00:00:59 +0000 Subject: [PATCH] fix(*): Use prefix rather than command text for help and adminhelp commands --- index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index 56fe6f3..325f40d 100644 --- a/index.js +++ b/index.js @@ -440,12 +440,12 @@ client.on('message', function (message) { if (command === 'help') { let msg = ` The commands available to you are: -- ${command}q - Join the queue -- ${command}q - Join the queue (first player can set the pokemon and their in-game name) -- ${command}lq - Leave the queue -- ${command}sq - Show the queue -- ${command}start - Vote to start the adventure early, without the full number of players (all players in the queue must use this to start early) -- ${command}dc - Delete an adventure channel (only the captain can use this) +- ${config.prefix}q - Join the queue +- ${config.prefix}q - Join the queue (first player can set the pokemon and their in-game name) +- ${config.prefix}lq - Leave the queue +- ${config.prefix}sq - Show the queue +- ${config.prefix}start - Vote to start the adventure early, without the full number of players (all players in the queue must use this to start early) +- ${config.prefix}dc - Delete an adventure channel (only the captain can use this) `; message.channel.send(msg); @@ -454,14 +454,14 @@ The commands available to you are: if (command === 'adminhelp') { let msg = ` The commands available to you are: -- ${command}q - Join the queue -- ${command}q - Join the queue (first player can set the pokemon and their in-game name) -- ${command}lq - Leave the queue -- ${command}sq - Show the queue -- ${command}start - Vote to start the adventure early, without the full number of players (all players in the queue must use this to start early) -- ${command}cq - Clear the queue (admin-only, not to be shared with normal users) -- ${command}ru - Remove a tagged user from the queue (admin-only, not to be shared with normal users) -- ${command}dc - Delete an adventure channel (only the captain can use this) +- ${config.prefix}q - Join the queue +- ${config.prefix}q - Join the queue (first player can set the pokemon and their in-game name) +- ${config.prefix}lq - Leave the queue +- ${config.prefix}sq - Show the queue +- ${config.prefix}start - Vote to start the adventure early, without the full number of players (all players in the queue must use this to start early) +- ${config.prefix}cq - Clear the queue (admin-only, not to be shared with normal users) +- ${config.prefix}ru - Remove a tagged user from the queue (admin-only, not to be shared with normal users) +- ${config.prefix}dc - Delete an adventure channel (only the captain can use this) `; message.channel.send(msg);