2016-08-24 17:15:14 +00:00
|
|
|
module.exports = (bot, trigger, lib) => {
|
|
|
|
trigger.add({
|
|
|
|
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'
|
|
|
|
});
|
|
|
|
};
|