From 4803bf89b214fec61eb2caf46786df4a8058e424 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Fri, 13 Jan 2023 00:45:01 -0500 Subject: [PATCH] exts/propagation: Remove deprecated ?solarweather aliases Fixes #332 --- CHANGELOG.md | 2 ++ exts/propagation.py | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9c8a58..6284f76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Changed - Migrated to Pycord. +### Removed +- Long-deprecated aliases for `?solarweather`. ## [2.8.0] - 2022-06-24 diff --git a/exts/propagation.py b/exts/propagation.py index f7a68e4..232189d 100644 --- a/exts/propagation.py +++ b/exts/propagation.py @@ -67,16 +67,12 @@ class PropagationCog(commands.Cog): embed.set_image(url=self.gl_baseurl + date_params) await ctx.send(embed=embed) - @commands.command(name="solarweather", aliases=["solar", "bandconditions", "cond", "condx", "conditions"], + @commands.command(name="solarweather", aliases=["solar"], category=cmn.Cats.WEATHER) async def solarweather(self, ctx: commands.Context): """Gets a solar weather report.""" embed = cmn.embed_factory(ctx) embed.title = "☀️ Current Solar Weather" - if ctx.invoked_with in ["bandconditions", "cond", "condx", "conditions"]: - embed.add_field(name="⚠️ Deprecated Command Alias", - value=(f"This command has been renamed to `{ctx.prefix}solar`!\n" - "The alias you used will be removed in the next version.")) embed.colour = cmn.colours.good embed.set_image(url=self.n0nbh_sun_url) await ctx.send(embed=embed)