Finally added more odpočítej

This commit is contained in:
Histmy 2021-05-20 01:37:59 +02:00
parent 6688062719
commit d1924bd0f1

View File

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