triggertest

This commit is contained in:
Flummi 2016-11-18 06:30:38 +01:00
parent 2af6dfb63d
commit 6611559b26

16
src/trigger/trigger.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = (lib) => {
lib.trigger.add({
name: 'trigger',
call: /^!trigger/i,
level: 100,
active: 1,
func: (e) => {
var output = "";
lib.trigger.trigger.forEach(e => {
output += lib.bot.format.get( (e.active)?'green':'red' )+" "+e.name;
});
e.reply(output);
},
desc: 'muh'
});
};