From 96d931c83d5120d5f3ac61413e2ad27d734383db Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Sun, 17 Nov 2019 21:47:12 +0100 Subject: [PATCH] Init --- config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index be38e13..64407b3 100644 --- a/config.js +++ b/config.js @@ -76,14 +76,14 @@ module.exports = function(name){ }, params : [ null, true], timezone : 'Europe/Zurich', - action : function(bot){ - this.bot = bot; - return ()=>{ + action : ()=>{ //return this.bot.telegram.sendMessage(groupid,"Mieux que 0 !",{}); - } } } - ] + ], + register_bot: (bot)=>{ + this.bot = bot; + } } }