From 8325ee978a7332ac37b96e534282d0115296a1bc Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 18 Nov 2019 13:39:07 +0100 Subject: [PATCH] Init --- config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index 18f3805..fd4d034 100644 --- a/config.js +++ b/config.js @@ -115,12 +115,12 @@ module.exports = function(){ cstr : '0 0 * * * *', params : [ null, true], timezone : 'Europe/Zurich', - action : function(bot){ - this.bot = bot; - return function(){ - return this.bot.telegram.sendMessage("0","Beep",{"parse_mode":"Markdown"}); + action : (bot)=> { + this.bot = bot; + return () =>{ + return this.bot.telegram.sendMessage("0","Beep",{"parse_mode":"Markdown"}); + } } - } } ] }