module.exports = (bot, trigger, lib) => { trigger.add({ name: 'debug', call: new RegExp('^\\!debug$', 'i'), level: 100, active: 1, func: (e) => { if(lib.debug) { lib.debug = false; e.reply('debugmode deactivated'); } else { lib.debug = true; e.reply('debugmode activated'); } }, desc: 'toggle debug' }); };