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