6 Commits

Author SHA1 Message Date
classabbyamp 6074f5bc45 Merge pull request #315 from miaowware/release-2.5.1
Release 2.5.1
2020-12-10 17:46:24 -05:00
Abigail G 23ca74253d prep for release 2.5.1 2020-12-10 17:43:58 -05:00
Abigail G af68be2b2a add changelog for reaction intent fix 2020-12-10 17:41:41 -05:00
0x5c 2ae11058b2 Merge pull request #314 from miaowware/fixgl
Addded a "nonce" to the greyline URL to force discord to reload the c…
2020-12-10 17:40:06 -05:00
0x5c eba8eec5ac Add nonce to greyline URL to force cache bypass
Fixes #308
2020-12-10 17:38:10 -05:00
classabbyamp d6e381efec add reactions intent (#313)
fixes #312
2020-12-10 09:07:30 -05:00
4 changed files with 13 additions and 3 deletions
+8 -1
View File
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
## [2.5.1] - 2020-12-10
### Fixed
- The result of `?greyline` was cached by discord and would get out of date.
- Broken reaction functionality in `?hamstudy`.
## [2.5.0] - 2020-10-31
### Added
- Italian (`it_hf`, `it_vhf`, `it_shf`), Japanese (`jp`) and Australian (`au`) band charts.
@@ -138,7 +144,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## 1.0.0 - 2019-07-31 [YANKED]
[Unreleased]: https://github.com/miaowware/qrm2/compare/v2.5.0...HEAD
[Unreleased]: https://github.com/miaowware/qrm2/compare/v2.5.1...HEAD
[2.5.1]: https://github.com/miaowware/qrm2/releases/tag/v2.5.1
[2.5.0]: https://github.com/miaowware/qrm2/releases/tag/v2.5.0
[2.4.1]: https://github.com/miaowware/qrm2/releases/tag/v2.4.1
[2.4.0]: https://github.com/miaowware/qrm2/releases/tag/v2.4.0
+3 -1
View File
@@ -86,7 +86,9 @@ class ImageCog(commands.Cog):
embed = cmn.embed_factory(ctx)
embed.title = "Current Greyline Conditions"
embed.colour = cmn.colours.good
embed.set_image(url=self.gl_url)
# Generate a nonce to force discord to recache this
cachenonce = (ctx.message.id >> 22) // 1000 // 600 # nonce will stay the same for ~10min
embed.set_image(url=self.gl_url + f"&cachenonce={cachenonce}")
await ctx.send(embed=embed)
+1 -1
View File
@@ -12,5 +12,5 @@ authors = ("@ClassAbbyAmplifier#2229", "@0x5c#0639")
description = """A bot with various useful ham radio-related functions, written in Python."""
license = "Released under the GNU General Public License v2"
contributing = "Check out the source on GitHub, contributions welcome: https://github.com/miaowware/qrm2"
release = "2.5.0"
release = "2.5.1"
bot_server = "https://discord.gg/Ntbg3J4"
+1
View File
@@ -49,6 +49,7 @@ intents = discord.Intents.none()
intents.guilds = True
intents.guild_messages = True
intents.dm_messages = True
intents.reactions = True
member_cache = discord.MemberCacheFlags.from_intents(intents)