f0ckv1/src/trigger/debug.js
2016-09-15 00:05:18 +02:00

19 lines
362 B
JavaScript

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