diff options
| author | s1n <[email protected]> | 2020-04-01 21:41:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-01 21:41:21 -0700 |
| commit | c4a0646ac7d2aa42082b9af28015380378d63177 (patch) | |
| tree | adca08f42344ea22f3297e3b4959a8ad1f005658 /app.js | |
| parent | Update package.json (diff) | |
| download | s5nical-c4a0646ac7d2aa42082b9af28015380378d63177.tar.xz s5nical-c4a0646ac7d2aa42082b9af28015380378d63177.zip | |
add help
Diffstat (limited to 'app.js')
| -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'])
|