diff options
| author | 8cy <[email protected]> | 2020-04-02 00:49:16 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-02 00:49:16 -0700 |
| commit | 04112a2a1052c24e22903f74d4765d92cae850c4 (patch) | |
| tree | 58fe876a595458c193073c69a1a637ac19d52447 | |
| parent | make commands bold in help actually (diff) | |
| download | s5nical-04112a2a1052c24e22903f74d4765d92cae850c4.tar.xz s5nical-04112a2a1052c24e22903f74d4765d92cae850c4.zip | |
commenting
| -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 |