This commit is contained in:
Cedric Hoelzl 2019-09-25 16:07:42 +02:00
parent f8fbe5c117
commit 7f58e3defe

View File

@ -49,20 +49,16 @@ module.exports = function(echo_list,regex_list){
media : [], media : [],
callback : [], callback : [],
inline : [], inline : [],
new_member : (bot,event)=>{ new_member : (bot,event)=>{},
//return event.replyWithMarkdown("Welcome !");
},
weburl : [], weburl : [],
cron : [], cron : [],
}; };
for(var i in echo_list){ for(var el of echo_list){
var element = echo_list[i]; echoobj.text.push(new get_echo_obj(el.cmd,el.ans));
echoobj.text.push(new get_echo_obj(element.cmd,element.ans));
} }
for(var i in regex_list){ for(var el of regex_list){
var element = regex_list[i]; echoobj.regex.push(new get_echo_obj(el.cmd,el.ans));
echoobj.regex.push(new get_echo_obj(element.cmd,element.ans));
} }
return echoobj; return echoobj;