1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Create restart.js

This commit is contained in:
MatteZ02 2020-02-24 21:17:24 +02:00
parent 1526400869
commit 5f8bf29696

15
commands/restart.js Normal file
View 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!');
}
};