From 2e13203ecece7a41d58b8e7e3c00f11e11d48ef3 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 21 Oct 2019 14:51:53 +0200 Subject: [PATCH] Coded --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 1f1a2fd..70b426e 100644 --- a/config.js +++ b/config.js @@ -70,7 +70,7 @@ const cbt = { function gen_kb(bot, p_en, parr,lang){ let bck_nxt = ""; let bck = ""; - let kb = []; + let kb = [[]]; let ntmr = tmr; for(let k of Object.keys(ntmr)){ if(p_en.indexOf(k.toString()) == -1){ @@ -103,14 +103,14 @@ function gen_kb(bot, p_en, parr,lang){ let str = ctmr.desc[lang]; let c = parr.join("_") + "_" + k.toString(); - kb.push(bot.mkcb(str,cbt.sel,c)); + kb[0].push(bot.mkcb(str,cbt.sel,c)); } } if(ntmr.tmr){ for(let i in ntmr.tmr){ let v = ntmr.tmr[i]; let str = ntmr.tmr_str[i]; - kb.push(bot.mkcb(str,cbt.run,v)) + kb[0].push(bot.mkcb(str,cbt.run,v)) } } }