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; } -} +};