1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 08:10:18 +00:00
musix-oss/commands/restart.js

16 lines
421 B
JavaScript
Raw Normal View History

2020-02-24 19:17:24 +00:00
module.exports = {
name: 'restart',
alias: 'none',
usage: '',
description: 'Restart the bot',
onlyDev: true,
permission: 'none',
category: 'util',
async execute(msg, args, client, Discord, prefix, command) {
client.destroy()
const MusicClient = require('../struct/client.js');
2020-02-24 19:18:17 +00:00
const newClient = new MusicClient({});
2020-02-24 19:17:24 +00:00
msg.channel.send('restarted!');
}
};