Fix the direct message flag.
This commit is contained in:
parent
0bf1baf341
commit
fb39aef577
@ -205,7 +205,8 @@ class FjerkroaBot(commands.Bot):
|
||||
if user is not None:
|
||||
message_content = re.sub(f'[<][@][!]? *{uid} *[>]', f'@{user.name}', message_content)
|
||||
channel_name = self.get_channel_name(message.channel)
|
||||
msg = AIMessage(message.author.name, message_content, channel_name, self.user in message.mentions)
|
||||
msg = AIMessage(message.author.name, message_content, channel_name,
|
||||
self.user in message.mentions or isinstance(message.channel, DMChannel))
|
||||
if message.attachments:
|
||||
for attachment in message.attachments:
|
||||
if not msg.urls:
|
||||
|
||||
BIN
openai_chat.dat
BIN
openai_chat.dat
Binary file not shown.
Loading…
Reference in New Issue
Block a user