Для украинского можно использовать русскую базу

This commit is contained in:
JonnyBro 2021-12-11 20:56:29 +05:00
parent 654eabaea5
commit dcea3731f3

View file

@ -23,7 +23,10 @@ class FindWords extends Command {
if (currentGames[message.guild.id]) return message.error("fun/number:GAME_RUNNING"); if (currentGames[message.guild.id]) return message.error("fun/number:GAME_RUNNING");
// Reads words file // 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 // Init some utils variables
const participants = [], const participants = [],