2
0
This commit is contained in:
Cedric Hoelzl 2019-10-21 15:02:27 +02:00
parent 1f0d72b840
commit af94b9818f

View File

@ -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);