From d1924bd0f19740eaae5823deb6bdb367fa83b279 Mon Sep 17 00:00:00 2001 From: Histmy Date: Thu, 20 May 2021 01:37:59 +0200 Subject: [PATCH] =?UTF-8?q?Finally=20added=20more=20odpo=C4=8D=C3=ADtej?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/komStatic.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/komStatic.js b/modules/komStatic.js index 7856874..f0df980 100644 --- a/modules/komStatic.js +++ b/modules/komStatic.js @@ -49,9 +49,19 @@ module.exports = { mes.channel.send({ embed: pomoc[1] }); break; + case "odpocitej": + case "odpočítej": + const randomshit = (dalsi, argument) => { + dalsi.edit(argument[0]); + argument.splice(0, 1); + if (argument.length) setTimeout(() => randomshit(dalsi, argument), 1000); + }; + mes.channel.send(":stop_button:").then(mes => randomshit(mes, [":five:", ":four:", ":three:", ":two:", ":one:", ":ok:"])); + break; + default: return false; } return true; } -} +};