text: module.exports = {
    commands: {
      say: {
        help: 'Notices the current channel with arbitrary text',
        command: function (bot, msg) {
          bot.notice(msg.to, msg.body)
        }
      },
      nick: {
        help: 'Changes the nickname of the bot',
        privileged: true,
        usage: ['nickname'],
        aliases: ['name', 'nickname'],
        command: function (bot, msg) {
          bot.send('NICK', msg.args.nickname)
        }
      },
      src: {
        help: 'Returns a link to the bot\'s source code',
        aliases: ['source', 'patchwelcome'],
        command: function () {
          return 'https://github.com/zuzakistan/civilservant'
        }
      },
      quit: {
        privileged: true,
        help: 'Causes the bot to quit',
        command: function (bot, msg) {
          if (msg.args[1]) {
            bot.log('info', 'QUITTING after command by ' + msg.nick + ' in ' + msg.to)
            process.exit(0)
          }
        }
      },
      control: {
        help: 'Checks whether the current channel is able to execute privileged commands',
        command: function (bot, msg) {
          if (msg.to === bot.config.get('irc.control')) {
            return 'this is the control channel'
          }
          return 'this is not the control channel'
        }
      },
      shout: {
        help: 'Checks whether the shout functionality is enabled',
        command: function (bot) {
          if (bot.config.get('irc.quiet')) {
            return 'bot is quiet'
          }
          return 'bot is loud'
        }
      }
    }
  }
  