From 9f7882e1f800577ec4c5732fb01fff1d953eb15d Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 18 Dec 2021 20:03:59 +0500 Subject: [PATCH] fix fortnite --- commands/General/fortnite.js | 4 ++-- languages/ru-RU/general/fortnite.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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}}",