diff --git a/config.js b/config.js index 64407b3..d64982d 100644 --- a/config.js +++ b/config.js @@ -76,14 +76,14 @@ module.exports = function(name){ }, params : [ null, true], timezone : 'Europe/Zurich', - action : ()=>{ + action : (bot)=> { + this.bot = bot; + return ()=>{ //return this.bot.telegram.sendMessage(groupid,"Mieux que 0 !",{}); + } } } - ], - register_bot: (bot)=>{ - this.bot = bot; - } + ] } }