triggertest
This commit is contained in:
parent
2af6dfb63d
commit
6611559b26
16
src/trigger/trigger.js
Normal file
16
src/trigger/trigger.js
Normal 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'
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user