Removed reacting on mes with spoustece

This commit is contained in:
Histmy 2021-07-23 15:36:53 +02:00
parent 6fa719f552
commit b00eea7bc6

View File

@ -1,9 +1,5 @@
// Komandy nebo handelery který se nikam jinam nehodí
const spoustece = ['mares', 'mareš', 'purfie', 'denim', '<@!477202009066438668>'];
const emouty = ['purfiek3:616026189269696512', 'purfiek3:616026189269696512', 'purfiek3:616026189269696512', 'purfieUchyl:576487602203525138', 'bafW:574646319696576532', 'purfiek4:616026180889477258'];
const rand = max => Math.floor(Math.random() * max);
module.exports = {
more_komand: (mes, komand, celArgs) => {
switch (komand) {
@ -27,15 +23,5 @@ module.exports = {
return false;
}
return true;
},
// Zareaguje na zprávu pokud obsahuje spouštěče a pokud RNG
on_message: mes => {
let sance = 0;
spoustece.forEach(sp => {
if (mes.content.toLowerCase().includes(sp)) sance++;
});
if (rand(3) < sance) mes.react(emouty[rand(emouty.length)])
.catch(er => console.log("neco se doebalo:", er.message));
}
};