This commit is contained in:
Flummi 2016-11-21 07:30:40 +01:00
parent 298f3ec687
commit d15281703c

20
src/trigger/cfg.js Normal file
View 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'
});
};