From b00eea7bc666ac26955744ef49124ebe6fb4eeb3 Mon Sep 17 00:00:00 2001 From: Histmy Date: Fri, 23 Jul 2021 15:36:53 +0200 Subject: [PATCH] Removed reacting on mes with spoustece --- modules/zbytek.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/zbytek.js b/modules/zbytek.js index d535aa7..d3cb092 100644 --- a/modules/zbytek.js +++ b/modules/zbytek.js @@ -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)); } };