|
|
|
@ -523,13 +523,16 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
|
|
|
|
|
and message.guild.id in Moderation.moderation_queues
|
|
|
|
|
and Moderation.moderation_queues[message.guild.id] is not None
|
|
|
|
|
):
|
|
|
|
|
# Create a timestamp that is 0.5 seconds from now
|
|
|
|
|
timestamp = (
|
|
|
|
|
datetime.datetime.now() + datetime.timedelta(seconds=0.5)
|
|
|
|
|
).timestamp()
|
|
|
|
|
await Moderation.moderation_queues[message.guild.id].put(
|
|
|
|
|
Moderation(message, timestamp)
|
|
|
|
|
) # TODO Don't proceed to conversation processing if the message is deleted by moderations.
|
|
|
|
|
# Verify that the user is not in a role that can bypass moderation
|
|
|
|
|
if (CHAT_BYPASS_ROLES is not [None]
|
|
|
|
|
and message.author.roles is not in CHAT_BYPASS_ROLES):
|
|
|
|
|
# Create a timestamp that is 0.5 seconds from now
|
|
|
|
|
timestamp = (
|
|
|
|
|
datetime.datetime.now() + datetime.timedelta(seconds=0.5)
|
|
|
|
|
).timestamp()
|
|
|
|
|
await Moderation.moderation_queues[message.guild.id].put(
|
|
|
|
|
Moderation(message, timestamp)
|
|
|
|
|
) # TODO Don't proceed to conversation processing if the message is deleted by moderations.
|
|
|
|
|
|
|
|
|
|
# Process the message if the user is in a conversation
|
|
|
|
|
if await TextService.process_conversation_message(
|
|
|
|
|