mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
Create restart.js
This commit is contained in:
parent
1526400869
commit
5f8bf29696
15
commands/restart.js
Normal file
15
commands/restart.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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 client = new MusicClient({});
|
||||||
|
msg.channel.send('restarted!');
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user