summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authors1n <[email protected]>2020-04-01 21:41:21 -0700
committerGitHub <[email protected]>2020-04-01 21:41:21 -0700
commitc4a0646ac7d2aa42082b9af28015380378d63177 (patch)
treeadca08f42344ea22f3297e3b4959a8ad1f005658 /app.js
parentUpdate package.json (diff)
downloads5nical-c4a0646ac7d2aa42082b9af28015380378d63177.tar.xz
s5nical-c4a0646ac7d2aa42082b9af28015380378d63177.zip
add help
Diffstat (limited to 'app.js')
-rw-r--r--app.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/app.js b/app.js
index a8ac836..36f69c5 100644
--- a/app.js
+++ b/app.js
@@ -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'])