f0ckv1/src/trigger/debug.js

19 lines
362 B
JavaScript
Raw Normal View History

2016-09-14 22:05:18 +00:00
module.exports = (lib) => {
2016-09-09 11:18:03 +00:00
lib.trigger.add({
2016-08-24 17:15:14 +00:00
name: 'debug',
2016-08-24 20:02:20 +00:00
call: /^\!debug$/i,
2016-08-24 17:15:14 +00:00
level: 100,
active: 1,
func: (e) => {
2016-09-07 11:03:13 +00:00
if(lib.debug) {
lib.debug = false;
e.reply('debugmode disabled');
}
else {
lib.debug = true;
e.reply('debugmode enabled');
}
2016-08-24 17:15:14 +00:00
},
desc: 'toggle debug'
});
};