mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Для украинского можно использовать русскую базу
This commit is contained in:
parent
654eabaea5
commit
dcea3731f3
1 changed files with 4 additions and 1 deletions
|
@ -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 = [],
|
||||
|
|
Loading…
Reference in a new issue