f0ckv1/src/trigger/debug.js

19 lines
394 B
JavaScript
Raw Normal View History

2016-08-24 17:15:14 +00:00
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'
});
};