From af94b9818fe8cf030bb3222c96c964ae47e6b3e3 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 21 Oct 2019 15:02:27 +0200 Subject: [PATCH] Coded --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 6cd460f..82e1bb6 100644 --- a/config.js +++ b/config.js @@ -179,8 +179,8 @@ module.exports = function(arr){ }); }, action : (bot,event,data)=>{ - return event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"}); - wait(parseInt(data)).then((res)=>{ + event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"}).catch(err=>bot.error(err)); + return wait(parseInt(data)).then((res)=>{ return event.reply("Times Up !"); }).catch(err=>{ bot.error(err);