Fix channel names in answers on history.

This commit is contained in:
OK 2023-08-21 16:18:37 +02:00
parent 96ff52ef8a
commit 17386af950

View File

@ -224,6 +224,8 @@ class AIResponder(object):
response['hack']) response['hack'])
if response_message.staff is not None and response_message.answer is not None: if response_message.staff is not None and response_message.answer is not None:
response_message.answer_needed = True response_message.answer_needed = True
if response_message.channel is None:
response_message.channel = message.channel
return response_message return response_message
def short_path(self, message: AIMessage, limit: int) -> bool: def short_path(self, message: AIMessage, limit: int) -> bool: