mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-22 15:58:40 -05:00
parent
32c7029b88
commit
6092252eaa
@ -11,8 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- New colour theme for `?greyline`.
|
- New colour theme for `?greyline`.
|
||||||
- Moved great circle distance and bearing calculation from `?ungrid` to `?griddistance`.
|
- Moved great circle distance and bearing calculation from `?ungrid` to `?griddistance`.
|
||||||
- `?ungrid` to `?latlong`.
|
- `?ungrid` to `?latlong`.
|
||||||
|
- Renamed `?cond` to `?solar`.
|
||||||
### Deprecated
|
### Deprecated
|
||||||
- `?ungrid`.
|
- `?ungrid`.
|
||||||
|
- Deprecated old `?solar` aliases (`?cond`, etc).
|
||||||
|
|
||||||
|
|
||||||
## [2.5.1] - 2020-12-10
|
## [2.5.1] - 2020-12-10
|
||||||
|
@ -24,11 +24,15 @@ class WeatherCog(commands.Cog):
|
|||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.session = aiohttp.ClientSession(connector=bot.qrm.connector)
|
self.session = aiohttp.ClientSession(connector=bot.qrm.connector)
|
||||||
|
|
||||||
@commands.command(name="bandconditions", aliases=["cond", "condx", "conditions"], category=cmn.cat.weather)
|
@commands.command(aliases=["solar", "bandconditions", "cond", "condx", "conditions"], category=cmn.cat.weather)
|
||||||
async def _band_conditions(self, ctx: commands.Context):
|
async def solarweather(self, ctx: commands.Context):
|
||||||
"""Gets a solar conditions report."""
|
"""Gets a solar weather report."""
|
||||||
embed = cmn.embed_factory(ctx)
|
embed = cmn.embed_factory(ctx)
|
||||||
embed.title = "Current Solar Conditions"
|
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.colour = cmn.colours.good
|
||||||
embed.set_image(url="http://www.hamqsl.com/solarsun.php")
|
embed.set_image(url="http://www.hamqsl.com/solarsun.php")
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
Loading…
Reference in New Issue
Block a user