From 6074aa4d91194360b6ab6485c1dbc0b8c1529a15 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Wed, 12 Apr 2023 22:45:42 +0200 Subject: [PATCH] Add some comment --- fjerkroa_bot/discord_bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fjerkroa_bot/discord_bot.py b/fjerkroa_bot/discord_bot.py index d2d04bc..1f3aacf 100644 --- a/fjerkroa_bot/discord_bot.py +++ b/fjerkroa_bot/discord_bot.py @@ -152,6 +152,7 @@ class FjerkroaBot(commands.Bot): if response.staff is None: response.staff = f"User {message.user} try to hack the AI." + # If there is a staff message, send it to the staff channel, with typing indicators 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)