From bad9071e82cdbb417fdfd9b6969212a18c3cc438 Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 6 Jan 2022 09:31:37 +0200 Subject: [PATCH 1/3] (routine): Update required data version. --- bot/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/constants.py b/bot/constants.py index e5eb789a..4594570a 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -1,2 +1,2 @@ CONFIG_FILE = "config/bot.conf" -DATA_VERSION = 6 +DATA_VERSION = 7 From 08efbb15b640630668a1b2df7d2dfcd0917bc5d4 Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 6 Jan 2022 09:32:25 +0200 Subject: [PATCH 2/3] fix (rroles): Sign error in expiry. --- bot/modules/guild_admin/reaction_roles/expiry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/guild_admin/reaction_roles/expiry.py b/bot/modules/guild_admin/reaction_roles/expiry.py index f928cd74..7de2c592 100644 --- a/bot/modules/guild_admin/reaction_roles/expiry.py +++ b/bot/modules/guild_admin/reaction_roles/expiry.py @@ -126,7 +126,7 @@ async def _expiry_tracker(client): while True: try: key = _next() - diff = utc_now().timestamp() - _expiring[key] if key else None + diff = _expiring[key] - utc_now().timestamp() if key else None await asyncio.wait_for(_wakeup_event.wait(), timeout=diff) except asyncio.TimeoutError: # Timeout means next doesn't exist or is ready to expire From 223d45416d0f5e3a7bde256a27f0146c1b989e59 Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 6 Jan 2022 09:33:14 +0200 Subject: [PATCH 3/3] fix (utils): Typo in `embed_reply` error handling. --- bot/utils/ctx_addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/utils/ctx_addons.py b/bot/utils/ctx_addons.py index 9697eeec..1a01139c 100644 --- a/bot/utils/ctx_addons.py +++ b/bot/utils/ctx_addons.py @@ -20,7 +20,7 @@ async def embed_reply(ctx, desc, colour=discord.Colour.orange(), **kwargs): try: return await ctx.reply(embed=embed, reference=ctx.msg.to_reference(fail_if_not_exists=False)) except discord.Forbidden: - if not ctx.guild or ctx.ch.permissions_for(ctx.guild.me).send_mssages: + if not ctx.guild or ctx.ch.permissions_for(ctx.guild.me).send_messages: await ctx.reply("Command failed, I don't have permission to send embeds in this channel!") raise SafeCancellation