From 229d587023a32a47bc0a7d84cc82d7c72aa5ec20 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 31 Oct 2021 15:50:38 +0000 Subject: Store what thread a message was sent in Taking care not to trigger on thread creation system messages. --- metricity/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metricity/bot.py b/metricity/bot.py index 2e6b41d..38e12a6 100644 --- a/metricity/bot.py +++ b/metricity/bot.py @@ -359,6 +359,9 @@ async def on_message(message: DiscordMessage) -> None: if message.guild.id != BotConfig.guild_id: return + if message.type == MessageType.thread_created: + return + await sync_process_complete.wait() await channel_sync_in_progress.wait() -- cgit v1.2.3