diff --git a/commands/General/fortnite.js b/commands/General/fortnite.js index adafe1bd..eb2f2bde 100644 --- a/commands/General/fortnite.js +++ b/commands/General/fortnite.js @@ -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"); diff --git a/languages/ru-RU/general/fortnite.json b/languages/ru-RU/general/fortnite.json index 8115b1d2..b98a4675 100644 --- a/languages/ru-RU/general/fortnite.json +++ b/languages/ru-RU/general/fortnite.json @@ -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}}",