muh
This commit is contained in:
parent
298f3ec687
commit
d15281703c
20
src/trigger/cfg.js
Normal file
20
src/trigger/cfg.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
module.exports = (lib) => {
|
||||
lib.trigger.add({
|
||||
name: 'cfg',
|
||||
call: /^!cfg$/i,
|
||||
level: 100,
|
||||
active: 1,
|
||||
func: (e) => {
|
||||
// irc, main, websrv
|
||||
var tmp = e.message.split('=');
|
||||
var value = tmp[1].trim();
|
||||
var cmd = tmp[0].replace('!cfg.','').trim().split('.');
|
||||
|
||||
var kat = cmd[0];
|
||||
var key = cmd[1];
|
||||
|
||||
e.reply("kat: "+kat+" ; key: "+key+" ; val: "+value);
|
||||
},
|
||||
desc: 'cfg'
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user