mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 03:39:32 +00:00 
			
		
		
		
	Create restart.js
This commit is contained in:
		
							
								
								
									
										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!');
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user