File size: 427 Bytes
597ee18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const bot = require('../bot')

module.exports = {
  description: 'Reboots the bot. Must have privileges to execute.',
  discrete: true,
  process: async msg => {
    if (await bot.checkRole(msg, ['Head Scribe', 'Elder'])) {
      await msg.channel.send('*Beep boop, click*')
      await console.log('Being shut down by ' + msg.author.username)
      process.exit()
    } else {
      bot.reject(msg)
    }
  }
}