Delete restart.js

This commit is contained in:
Anthony M 2021-01-23 17:58:05 -06:00 committed by GitHub
parent c0de899207
commit c473664918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,21 +0,0 @@
module.exports = {
name: 'restart',
description: '(Owner Only) Shuts down the bot.',
execute(client, message, args) {
const { token } = require('./config.json');
if (message.author.id == 309427567004483586) {
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then
client.destroy()
.catch(console.error)
.then
console.log("Restarting!")
console.log("Getting ready")
console.log("Ready to start!")
client.login(token);
message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
console.log("All systems go")
} else {
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command.");
}
}}