summaryrefslogtreecommitdiff
path: root/commands/reboot.js
blob: 950da3bb8fbd4e99fddd1840a58acd19b3eb70e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
    name: 'reboot',
    aliases: ['r', 're'],
    description: '',
    execute(msg, args, bot) {
        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');
        }
    }
};