refactor whitelist and add restart cmd

This commit is contained in:
jane 2020-11-21 18:12:14 -05:00
parent 06ee822be3
commit 157f64d2ae
3 changed files with 35 additions and 8 deletions

View file

@ -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;