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"}); + } } - } } ] }