From 857ee29e1032ed709af130154d5e28052938a2e3 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Thu, 19 Nov 2020 22:49:41 +0000 Subject: [PATCH] feat(*): Update help commands to use the correct command symbol from the config file rather than hard-coding one --- index.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index de14c28..fe5d99f 100644 --- a/index.js +++ b/index.js @@ -389,11 +389,11 @@ client.on('message', function (message) { if (command === 'help') { let msg = ` The commands available to you are: -- !q - Join the queue -- !q - Join the queue (first player can set the pokemon and their in-game name) -- !lq - Leave the queue -- !sq - Show the queue -- !dc - Delete an adventure channel (only the captain can use this) +- ${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}dc - Delete an adventure channel (only the captain can use this) `; message.channel.send(msg); @@ -402,13 +402,13 @@ The commands available to you are: if (command === 'adminhelp') { let msg = ` The commands available to you are: -- !q - Join the queue -- !q - Join the queue (first player can set the pokemon and their in-game name) -- !lq - Leave the queue -- !sq - Show the queue -- !cq - Clear the queue (admin-only, not to be shared with normal users) -- !ru - Remove a tagged user from the queue (admin-only, not to be shared with normal users) -- !dc - Delete an adventure channel (only the captain can use this) +- ${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}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) `; message.channel.send(msg);