mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Хардкод языков =)
This commit is contained in:
parent
56825a80c2
commit
e67b0e8b5a
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ class Reload extends Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, args, data) {
|
async run(message, args) {
|
||||||
const command = args[0];
|
const command = args[0];
|
||||||
const cmd = this.client.commands.get(command) || this.client.commands.get(this.client.aliases.get(command));
|
const cmd = this.client.commands.get(command) || this.client.commands.get(this.client.aliases.get(command));
|
||||||
if (!cmd) return message.error("owner/reload:NOT_FOUND", { search: command });
|
if (!cmd) return message.error("owner/reload:NOT_FOUND", { search: command });
|
||||||
|
@ -26,8 +26,8 @@ class Reload extends Command {
|
||||||
await this.client.unloadCommand(cmd.conf.location, cmd.help.name);
|
await this.client.unloadCommand(cmd.conf.location, cmd.help.name);
|
||||||
await this.client.loadCommand(cmd.conf.location, cmd.help.name);
|
await this.client.loadCommand(cmd.conf.location, cmd.help.name);
|
||||||
|
|
||||||
const lang = message.guild ? data.guild.language : "ru-RU";
|
// const lang = message.guild ? data.guild.language : "ru-RU";
|
||||||
i18next.reloadResources(lang);
|
i18next.reloadResources(["ru-RU", "uk-UA"]);
|
||||||
autoUpdateDocs.update(this.client);
|
autoUpdateDocs.update(this.client);
|
||||||
|
|
||||||
message.success("owner/reload:SUCCESS", {
|
message.success("owner/reload:SUCCESS", {
|
||||||
|
|
Loading…
Reference in a new issue