From a4d19e3cd91a2a1204c0633e42fd08f086d4fd5d Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 18 Nov 2019 13:39:59 +0100 Subject: [PATCH] Init --- config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index c866c35..611e769 100644 --- a/config.js +++ b/config.js @@ -116,12 +116,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"}); + } } - } } ] }