feat(*): Add help and adminhelp commands

This commit is contained in:
2020-10-26 22:09:49 +00:00
parent 0f5d9278eb
commit 9fc701406d
+28
View File
@@ -288,4 +288,32 @@ client.on('message', function (message) {
logger.log('info', `${message.author.username} attempted to delete channel ${message.channel.id} but it's not their adventure channel.`);
}
}
if (command === 'help') {
let msg = `
The commands available to you are:
- !q - Join the queue
- !q <pokemon> <ign> - 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)
`;
message.channel.send(msg);
}
if (command === 'adminhelp') {
let msg = `
The commands available to you are:
- !q - Join the queue
- !q <pokemon> <ign> - 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)
`;
message.channel.send(msg);
}
});