Delete restart.js
This commit is contained in:
parent
c0de899207
commit
c473664918
1 changed files with 0 additions and 21 deletions
|
@ -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.");
|
|
||||||
}
|
|
||||||
}}
|
|
Reference in a new issue