From 0a9420d1569b13804d7590e0c6e36c4b11ede347 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Wed, 12 Apr 2023 22:45:11 +0200 Subject: [PATCH] Fix sending staff messages --- fjerkroa_bot/discord_bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fjerkroa_bot/discord_bot.py b/fjerkroa_bot/discord_bot.py index c55cfc3..d2d04bc 100644 --- a/fjerkroa_bot/discord_bot.py +++ b/fjerkroa_bot/discord_bot.py @@ -152,6 +152,10 @@ class FjerkroaBot(commands.Bot): if response.staff is None: response.staff = f"User {message.user} try to hack the AI." + if response.staff is not None and self.staff_channel is not None: + async with self.staff_channel.typing(): + await self.staff_channel.send(response.staff, suppress_embeds=True) + # Get the answer channel based on the requested response channel answer_channel = self.channel_by_name(response.channel, channel)