Fix message_edit and message_delete reactions.
This commit is contained in:
parent
d65e181308
commit
cec581495f
@ -126,14 +126,16 @@ class FjerkroaBot(commands.Bot):
|
|||||||
await self.on_reaction_operation(reaction, user, 'clearing')
|
await self.on_reaction_operation(reaction, user, 'clearing')
|
||||||
|
|
||||||
async def on_message_edit(self, before, after):
|
async def on_message_edit(self, before, after):
|
||||||
await self.memoize(before.author.name, 'assistant',
|
airesponder = self.get_ai_responder(self.get_channel_name(before.channel))
|
||||||
'\n> ' + before.content.replace('\n', '\n> '),
|
await airesponder.memoize(before.author.name, 'assistant',
|
||||||
'User changed this message to:\n> ' + after.content.replace('\n', '\n> '))
|
'\n> ' + before.content.replace('\n', '\n> '),
|
||||||
|
'User changed this message to:\n> ' + after.content.replace('\n', '\n> '))
|
||||||
|
|
||||||
async def on_message_delete(self, message):
|
async def on_message_delete(self, message):
|
||||||
await self.memoize(message.author.name, 'assistant',
|
airesponder = self.get_ai_responder(self.get_channel_name(message.channel))
|
||||||
'\n> ' + message.content.replace('\n', '\n> '),
|
await airesponder.memoize(message.author.name, 'assistant',
|
||||||
'User deleted this message.')
|
'\n> ' + message.content.replace('\n', '\n> '),
|
||||||
|
'User deleted this message.')
|
||||||
|
|
||||||
def on_config_file_modified(self, event):
|
def on_config_file_modified(self, event):
|
||||||
if event.src_path == self.config_file:
|
if event.src_path == self.config_file:
|
||||||
|
|||||||
BIN
openai_chat.dat
BIN
openai_chat.dat
Binary file not shown.
Loading…
Reference in New Issue
Block a user