exts/propagation: Remove deprecated ?solarweather aliases

Fixes #332
This commit is contained in:
0x5c 2023-01-13 00:45:01 -05:00
parent c82216cae6
commit 4803bf89b2
No known key found for this signature in database
GPG Key ID: A57F71C3176B9581
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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)