mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
fix fortnite
This commit is contained in:
parent
1729263209
commit
9f7882e1f8
2 changed files with 3 additions and 3 deletions
|
@ -23,8 +23,8 @@ class Fortnite extends Command {
|
||||||
|
|
||||||
const stats = new Canvas.FortniteStats();
|
const stats = new Canvas.FortniteStats();
|
||||||
|
|
||||||
const platform = args[0];
|
const platform = args[0].toLowerCase();
|
||||||
if (!platform || (platform !== "PC" && platform !== "XBL" && platform !== "PSN")) return message.error("general/fortnite:MISSING_PLATFORM");
|
if (!platform || (platform !== "pc" && platform !== "xbl" && platform !== "psn")) return message.error("general/fortnite:MISSING_PLATFORM");
|
||||||
|
|
||||||
const user = args.slice(1).join(" ");
|
const user = args.slice(1).join(" ");
|
||||||
if (!user) return message.error("general/fortnite:MISSING_USERNAME");
|
if (!user) return message.error("general/fortnite:MISSING_USERNAME");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"DESCRIPTION": "Показать статистику игрока в Fortnite!",
|
"DESCRIPTION": "Показать статистику игрока в Fortnite!",
|
||||||
"USAGE": "{{prefix}}fortnite [PSN/XBL/PC] [ник]",
|
"USAGE": "{{prefix}}fortnite [PSN/XBL/PC] [ник]",
|
||||||
"EXAMPLES": "{{prefix}}fortnite PC Ninja",
|
"EXAMPLES": "{{prefix}}fortnite PC Ninja",
|
||||||
"MISSING_PLATFORM": "Выберите платформу: `PSN`, `PC` или `XBL`!",
|
"MISSING_PLATFORM": "Выберите платформу: `PSN`, `PC` или `XBL` (без учёта регистра)!",
|
||||||
"MISSING_USERNAME": "Укажите ник в Epic Games!",
|
"MISSING_USERNAME": "Укажите ник в Epic Games!",
|
||||||
"NOT_FOUND": "`{{search}}` не найден на платформе `{{platform}}`!",
|
"NOT_FOUND": "`{{search}}` не найден на платформе `{{platform}}`!",
|
||||||
"TITLE": "Статистика игрока {{username}}",
|
"TITLE": "Статистика игрока {{username}}",
|
||||||
|
|
Loading…
Reference in a new issue