diff options
| -rw-r--r-- | app.js | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -10,7 +10,7 @@ bot.on('ready', () => { });
// Outputs available commands in output console
- commands = ['ping', '8ball/ball', 'say', 'server'];
+ commands = ['ping', '8ball/ ball', 'say', 'server'];
console.log(commands);
});
@@ -145,8 +145,22 @@ bot.on('message', msg => { .setColor(0xffd296);
msg.channel.send(RichEmbed = emb);
- }
+ }
+
+ // Help
+ if (command == 'help') {
+ msg.channel.send('Please Wait...').then(m => {
+ m.edit(`** **`);
+
+ let emb = new Discord.RichEmbed()
+
+ .setDescription(`The available commands are: ping, 8ball/ ball, say, server and help.`)
+ .setColor(0xffd296);
+
+ msg.channel.send(RichEmbed = emb);
+ });
+ }
} else if (msg.channel.name !== 'bots' && msg.content.startsWith(`${config.prefixes.main}`) && !msg.member.hasPermission('KICK_MEMBERS')) return;
})
-bot.login(config['secret'])
\ No newline at end of file +bot.login(config['secret'])
|