Added /help command
This commit is contained in:
parent
dcf20255ee
commit
0ca661d2ab
1 changed files with 5 additions and 0 deletions
5
index.js
5
index.js
|
@ -197,6 +197,11 @@ client.on('message', async function (message) {
|
||||||
message.channel.send(`Invite link: <${invitelink}>`);
|
message.channel.send(`Invite link: <${invitelink}>`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(message.cleanContent.startsWith('/help') || message.cleanContent.startsWith('/beebot')) {
|
||||||
|
let commands = Object.keys(templates).map(x => '/'+x).join(', ');
|
||||||
|
message.channel.send(`Available commands: ${commands}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const messageSplit = message.cleanContent.split(" ");
|
const messageSplit = message.cleanContent.split(" ");
|
||||||
const emoji = findEmoji(message.cleanContent);
|
const emoji = findEmoji(message.cleanContent);
|
||||||
|
|
Reference in a new issue