summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-07 23:09:52 -0700
committer8cy <[email protected]>2020-04-07 23:09:52 -0700
commitd5a459d1b546a44a514205c86e81335caf4c615f (patch)
tree79dafa568428efe060301e2c1da7576c1f3a59d9 /commands
parentadd uptime alias, v1.3.4 (diff)
downloads5nical-d5a459d1b546a44a514205c86e81335caf4c615f.tar.xz
s5nical-d5a459d1b546a44a514205c86e81335caf4c615f.zip
rework try/ catch loop to fix errors, v1.4.0
took 2 hours according to github to fix...
Diffstat (limited to 'commands')
-rw-r--r--commands/botstatus.js6
-rw-r--r--commands/reboot.js16
2 files changed, 18 insertions, 4 deletions
diff --git a/commands/botstatus.js b/commands/botstatus.js
index 6401571..8f9a198 100644
--- a/commands/botstatus.js
+++ b/commands/botstatus.js
@@ -5,9 +5,13 @@ module.exports = {
aliases: ['status', 'bs'],
description: '',
async execute(msg, args, bot) {
+ t = 'LISTENING';
if (msg.member.hasPermission('KICK_MEMBERS')) {
+
m = args.join(' ');
- bot.user.setActivity(m);
+ bot.user.setActivity(m, {
+ type: t
+ });
} else {
msg.reply('insufficent perms bruh');
}
diff --git a/commands/reboot.js b/commands/reboot.js
index 9416730..950da3b 100644
--- a/commands/reboot.js
+++ b/commands/reboot.js
@@ -3,8 +3,18 @@ module.exports = {
aliases: ['r', 're'],
description: '',
execute(msg, args, bot) {
- msg.member.voiceChannel.join();
- msg.member.voiceChannel.leave();
- msg.reply('reboot finished lol');
+ if (args[0] == 'voice' || args[0] == 'v') {
+ if (!msg.member.voiceChannel) {
+ msg.reply('you need to be in a voice channel to reboot the voice module');
+ } else {
+ msg.member.voiceChannel.join();
+ msg.member.voiceChannel.leave();
+ msg.reply('voice module reboot finished lol');
+ }
+ } else if (args[0] == 'commands' || args[0] == 'commands' || args[0] == 'cmds' || args[0] == 'cmd' || args[0] == 'c') {
+ msg.reply('commands module reboot finished lol');
+ } else if (!args.length) {
+ msg.reply('no module(s) specified');
+ }
}
}; \ No newline at end of file