Add "stop command
To restart the bot.
This commit is contained in:
parent
01cad10e7b
commit
b959bdf2af
1 changed files with 10 additions and 0 deletions
10
plugins/commands/stop.js
Normal file
10
plugins/commands/stop.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
module.exports={
|
||||
execute: (c)=>{
|
||||
if(c.type!=console) return;
|
||||
process.exit(0);
|
||||
},
|
||||
desc: "Restart bot", // Command description
|
||||
usage: ' <required> [optional]', // Command usage
|
||||
hidden: true,
|
||||
consoleIndex: true
|
||||
}
|
Loading…
Reference in a new issue