refactor whitelist and add restart cmd
This commit is contained in:
parent
06ee822be3
commit
157f64d2ae
3 changed files with 35 additions and 8 deletions
11
cmd/reg.js
11
cmd/reg.js
|
@ -17,4 +17,15 @@ class PingCommand extends Command {
|
|||
|
||||
initializer.addCommand(new PingCommand());
|
||||
|
||||
class RestartCommand extends Command {
|
||||
name = 'restart';
|
||||
func(msg, args, ctx) {
|
||||
msg.channel.createMessage('restarting.').then(() => {
|
||||
process.exit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
initializer.addCommand(new RestartCommand());
|
||||
|
||||
export default initializer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue