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 : [],
callback : [],
inline : [],
new_member : (bot,event)=>{
//return event.replyWithMarkdown("Welcome !");
},
new_member : (bot,event)=>{},
weburl : [],
cron : [],
};
for(var i in echo_list){
var element = echo_list[i];
echoobj.text.push(new get_echo_obj(element.cmd,element.ans));
for(var el of echo_list){
echoobj.text.push(new get_echo_obj(el.cmd,el.ans));
}
for(var i in regex_list){
var element = regex_list[i];
echoobj.regex.push(new get_echo_obj(element.cmd,element.ans));
for(var el of regex_list){
echoobj.regex.push(new get_echo_obj(el.cmd,el.ans));
}
return echoobj;