Fix sending staff messages

This commit is contained in:
OK 2023-04-12 22:45:11 +02:00
parent 2ca528e211
commit 0a9420d156

View File

@ -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)