File size: 273 Bytes
bb69f9b
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const { bot } = require('../lib/')
const { restartInstance } = require('../lib/pm2')
bot(
  {
    pattern: 'reboot ?(.*)',
    desc: 'restart with pm2',
    type: 'misc',
  },
  async (message, match) => {
    await message.send(`_Restarting_`)
    restartInstance()
  }
)