diff options
| -rw-r--r-- | app.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |