Coded
This commit is contained in:
parent
1f0d72b840
commit
af94b9818f
@ -179,8 +179,8 @@ module.exports = function(arr){
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
action : (bot,event,data)=>{
|
action : (bot,event,data)=>{
|
||||||
return event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"});
|
event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"}).catch(err=>bot.error(err));
|
||||||
wait(parseInt(data)).then((res)=>{
|
return wait(parseInt(data)).then((res)=>{
|
||||||
return event.reply("Times Up !");
|
return event.reply("Times Up !");
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
bot.error(err);
|
bot.error(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user