From dcea3731f3497960803f4daf802feb4df260a6a4 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 11 Dec 2021 20:56:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BB=D1=8F=20=D1=83=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=B8=D0=BD=D1=81=D0=BA=D0=BE=D0=B3=D0=BE=20=D0=BC=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=20=D1=80=D1=83=D1=81=D1=81=D0=BA=D1=83?= =?UTF-8?q?=D1=8E=20=D0=B1=D0=B0=D0=B7=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Fun/findwords.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/Fun/findwords.js b/commands/Fun/findwords.js index d9bc5cd7..c015c2d8 100644 --- a/commands/Fun/findwords.js +++ b/commands/Fun/findwords.js @@ -23,7 +23,10 @@ class FindWords extends Command { if (currentGames[message.guild.id]) return message.error("fun/number:GAME_RUNNING"); // Reads words file - const wordList = require(`../../assets/json/words/${message.guild.data.language}.json`); + let lang = null; + if (message.guild.data.language === "uk-UA") return lang = "ru-RU"; + else lang = message.guild.data.language; + const wordList = require(`../../assets/json/words/${lang}.json`); // Init some utils variables const participants = [],