From 6c062ab1e263d072a19304b38f3e7342e3ff1117 Mon Sep 17 00:00:00 2001 From: Draper <27962761+Drapersniper@users.noreply.github.com> Date: Sat, 22 Feb 2020 19:52:01 +0000 Subject: [PATCH] [Core] Update licenseinfo command to conform with non-American English. (#3460) * Update the licence command to confirm with non-American English and keep it inline with the `colour`/`color` command Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com> * What is Black Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com> * improve error handling Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com> --- redbot/core/core_commands.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index cbb561ffd..b9e3f4af1 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -2470,14 +2470,19 @@ class Core(commands.Cog, CoreLogic): # Removing this command from forks is a violation of the GPLv3 under which it is licensed. # Otherwise interfering with the ability for this command to be accessible is also a violation. -@commands.command(cls=commands.commands._AlwaysAvailableCommand, name="licenseinfo", i18n=_) +@commands.command( + cls=commands.commands._AlwaysAvailableCommand, + name="licenseinfo", + aliases=["licenceinfo"], + i18n=_, +) async def license_info_command(ctx): """ Get info about Red's licenses """ message = ( - "This bot is an instance of Red-DiscordBot (hereafter refered to as Red)\n" + "This bot is an instance of Red-DiscordBot (hereafter referred to as Red)\n" "Red is a free and open source application made available to the public and " "licensed under the GNU GPLv3. The full text of this license is available to you at " ""