diff options
| author | 8cy <[email protected]> | 2020-04-10 10:16:53 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-10 10:16:53 -0700 |
| commit | 4b308538961facb87d73fafeab7fab5927562eff (patch) | |
| tree | 8eaf88c074c379d76e7932e6fc3f32c05adb70ca /commands/botstatus.js | |
| parent | rework reboot, work on itemshop, v1.5.2 (diff) | |
| download | s5nical-4b308538961facb87d73fafeab7fab5927562eff.tar.xz s5nical-4b308538961facb87d73fafeab7fab5927562eff.zip | |
port to commando/ v12, 2.0.0
ported everything over to v12 and then commando in the span of 2 days no sleep lol. also now using typescript standard for cool 8)
Diffstat (limited to 'commands/botstatus.js')
| -rw-r--r-- | commands/botstatus.js | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/commands/botstatus.js b/commands/botstatus.js deleted file mode 100644 index da2c85a..0000000 --- a/commands/botstatus.js +++ /dev/null @@ -1,95 +0,0 @@ -// TODO: bot status - -const Discord = require('discord.js'); - -module.exports = { - name: 'botstatus', - aliases: ['status', 'bs'], - description: '', - async execute(msg, args, bot) { - if (msg.member.hasPermission('KICK_MEMBERS')) { - var activityType = bot.user.presence.game.type; - var activityName = bot.user.presence.game.name; - - function activityTypeToWords() { - if (activityName == '0') { - var activityName = 'PLAYING'; - } else if (activityName == '1') { - var activityName = 'STREAMING'; - } else if (activityName == '2') { - var activityName = 'LISTENING'; - } else if (activityName == '3') { - var activityName = 'WATCHING'; - } - } - - if (args[0] == 'reset' || args[0] == 'r') { - bot.user.setActivity('psycho ~uwu', { - type: 'LISTENING' - }); - msg.reply('status has been reset lol'); - } else if (args[0] == 'format' || args[0] == 'f') { - // Print full, proper format for the Discord.js setActivity() function - msg.reply('\n`' + bot.user.setActivity.toString() + '`'); - } else if (args[0] == 'message' || args[0] == 'msg' || args[0] == 'm') { - // This took way to long to complete lol, 2020/04/08, 00:12, my birthday lol - if (args[0] == 'message') { - var m = args.join(' '); - var mf = m.slice(8, 22); - } else if (args[0] == 'msg') { - var m = args.join(' '); - var mf = m.slice(4, 22); - } else if (args[0] == 'm') { - var m = args.join(' '); - var mf = m.slice(2, 22); - } - - if (mf == 'reset' || mf == 'r') { - bot.user.setActivity('psycho ~uwu', { - type: activityType - }); - - msg.reply('status message has been reset lol'); - } else { - bot.user.setActivity(mf, { - type: activityType - }); - } - } else if (args[0] == 'type' || args[0] == 't') { - var m = args[1]; - args[1].toLowerCase(); - if (args[1] == 'playing' || args[1] == 'p') { - var m = 'playing'; - - bot.user.setActivity(activityName, { - type: m - }); - } else if (args[1] == 'listening' || args[1] == 'l') { - var m = 'LISTENING'; - - bot.user.setActivity(activityName, { - type: m - }); - } else if (args[1] == 'watching' || args[1] == 'w') { - var m = 'WATCHING'; - - bot.user.setActivity(activityName, { - type: m - }); - } else if (args[1] == 'custom' || args[1] == 'c') { - msg.reply('custom status is disabled due to discord api policies about self-botting :('); - } else if (args[1] == 'reset' || args[1] == 'r') { - bot.user.setActivity(activityName, { - type: 'LISTENING' - }); - - msg.reply('status type has been reset lol'); - } - } else if (!args.length) { - msg.reply('no arguments specified'); - } - } else { - msg.reply('insufficent perms bruh'); - } - } -};
\ No newline at end of file |