fix fortnite

This commit is contained in:
JonnyBro 2021-12-18 20:03:59 +05:00
parent 1729263209
commit 9f7882e1f8
2 changed files with 3 additions and 3 deletions

View file

@ -23,8 +23,8 @@ class Fortnite extends Command {
const stats = new Canvas.FortniteStats();
const platform = args[0];
if (!platform || (platform !== "PC" && platform !== "XBL" && platform !== "PSN")) return message.error("general/fortnite:MISSING_PLATFORM");
const platform = args[0].toLowerCase();
if (!platform || (platform !== "pc" && platform !== "xbl" && platform !== "psn")) return message.error("general/fortnite:MISSING_PLATFORM");
const user = args.slice(1).join(" ");
if (!user) return message.error("general/fortnite:MISSING_USERNAME");

View file

@ -2,7 +2,7 @@
"DESCRIPTION": "Показать статистику игрока в Fortnite!",
"USAGE": "{{prefix}}fortnite [PSN/XBL/PC] [ник]",
"EXAMPLES": "{{prefix}}fortnite PC Ninja",
"MISSING_PLATFORM": "Выберите платформу: `PSN`, `PC` или `XBL`!",
"MISSING_PLATFORM": "Выберите платформу: `PSN`, `PC` или `XBL` (без учёта регистра)!",
"MISSING_USERNAME": "Укажите ник в Epic Games!",
"NOT_FOUND": "`{{search}}` не найден на платформе `{{platform}}`!",
"TITLE": "Статистика игрока {{username}}",