From 03984a8a9e3cc484f69d873422f0da54107f0a63 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 21 Oct 2019 14:55:17 +0200 Subject: [PATCH] Coded --- config.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 70b426e..967166e 100644 --- a/config.js +++ b/config.js @@ -98,7 +98,7 @@ function gen_kb(bot, p_en, parr,lang){ let ctmr = ntmr[k]; if(ctmr.sub){ let str = ctmr.desc[lang]; - kb.push(bot.mkcb(str,cbt.sel,k)); + k[0].push(bot.mkcb(str,cbt.sel,k)); }else if(ctmr.tmr){ let str = ctmr.desc[lang]; let c = parr.join("_") + "_" + k.toString(); @@ -119,11 +119,6 @@ function gen_kb(bot, p_en, parr,lang){ return kb; } -// let bot ={ -// mkcb:(x,y,z)=>{return y+"_"+z} -// } -// console.log(gen_kb(bot,["atrium"],["atrium"],0)) - module.exports = function(arr){ this.arr = arr; @@ -184,7 +179,7 @@ module.exports = function(arr){ }); }, action : (bot,event,data)=>{ - return event.editMessageText("Running timer of "+data+" minutes !", {"parse_mode":"Markdown"}); + return event.editMessageText("Running timer of "+parseInt(data)+" minutes !", {"parse_mode":"Markdown"}); wait(parseInt(data)).then((res)=>{ return event.reply("Times Up !"); }).catch(err=>{