mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
16 lines
421 B
JavaScript
16 lines
421 B
JavaScript
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');
|
|
const newClient = new MusicClient({});
|
|
msg.channel.send('restarted!');
|
|
}
|
|
};
|