This commit is contained in:
Cedric Hoelzl 2019-09-25 11:58:57 +02:00
parent 0f4789978a
commit 69993f0c59

View File

@ -15,10 +15,11 @@ function get_echo_obj(cmd,ans){
return { return {
trigger : this.cmd, trigger : this.cmd,
public : true, public : true,
desc : {0:`Replies "+${ans}"`, desc : {
1:`Repond "${ans}"`, 0:`Replies "+${ans}"`,
2:`${ans} ga kotaete`, 1:`Repond "${ans}"`,
3:`${ans} *insert arabic*`, 2:`${ans} ga kotaete`,
3:`${ans} *insert arabic*`,
}, },
requirements : (bot,event,message)=>{ requirements : (bot,event,message)=>{
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
@ -52,9 +53,6 @@ module.exports = function(echo_list,regex_list){
}, },
weburl : [], weburl : [],
cron : [], cron : [],
cron_register : function(cron_f,bot,c){
new cron_f(c.cstr, new c.action(bot), c.params[0], c.params[1], c.timezone);
},
}; };
for(var i in echo_list){ for(var i in echo_list){