Add reaction on message edit.

This commit is contained in:
OK
2024-03-17 13:46:37 +01:00
parent 1bff1c9719
commit 29b0d6efca
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -298,8 +298,8 @@ class AIResponder(AIResponderBase):
async def memoize_reaction(self, message_user: str, reaction_user: str, operation: str, reaction: str, message: str) -> None:
quoted_message = message.replace('\n', '\n> ')
await self.memoize(message_user, reaction_user,
f'> {quoted_message}',
await self.memoize(message_user, 'assistant',
f'\n> {quoted_message}',
f'User {reaction_user} has {operation} this raction: {reaction}')
async def send(self, message: AIMessage) -> AIResponse: