summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-02 00:49:16 -0700
committer8cy <[email protected]>2020-04-02 00:49:16 -0700
commit04112a2a1052c24e22903f74d4765d92cae850c4 (patch)
tree58fe876a595458c193073c69a1a637ac19d52447
parentmake commands bold in help actually (diff)
downloads5nical-04112a2a1052c24e22903f74d4765d92cae850c4.tar.xz
s5nical-04112a2a1052c24e22903f74d4765d92cae850c4.zip
commenting
-rw-r--r--app.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/app.js b/app.js
index 13a23bb..f27cd3f 100644
--- a/app.js
+++ b/app.js
@@ -4,8 +4,8 @@ const bot = new Discord.Client();
const isImageUrl = require('is-image-url');
bot.on('ready', () => {
- console.log(`Started bot: ${bot.user.tag} (ID: ${bot.user.id})\nCurrently running on ${bot.guilds.size} server(s).`);
- bot.user.setActivity('psycho~ owo.', {
+ console.log(`Started bot: ${bot.user.tag} (ID: ${bot.user.id})\nCurrently running on ${bot.guilds.size} server(s).`); // Startup dialouge in output console
+ bot.user.setActivity('psycho~ owo.', { // Set status
type: 'LISTENING'
});
@@ -26,6 +26,7 @@ bot.on('message', msg => {
console.log(msgContent);
console.log(config.prefixes.main);
+ // Check prefixies in config.json
function prefixCheck() {
if (msgContent.startsWith(config.prefixes.main)) {
return "main";
@@ -159,4 +160,5 @@ bot.on('message', msg => {
} else if (msg.channel.name !== 'bots' && msg.content.startsWith(`${config.prefixes.main}`) && !msg.member.hasPermission('KICK_MEMBERS')) return;
})
-bot.login(config['secret'])
+// Get bot token
+bot.login(config['secret']) \ No newline at end of file