voiio / Sam

Sam – cuz your company is nothing without Sam
https://code.voiio.de/Sam/
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Refs #66 -- handle edited Slack message #79

Closed amureki closed 5 months ago

amureki commented 5 months ago

Along with deleting messages, Slack users can edit them.

I would rather not complicate things here and introduce updating logic via OpenAI API. Especially with the fact the most editing of the messages (before AI replies) is happening due to the typos and AI does not care much about the typos. So, the same thing as for the deleting messages - we just ignore such signals.

How to test

sam run slack

Send a message to a bot, instantly edit it. There should be no errors in the logs and the bot should respond with a message, not error emoji.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.62%. Comparing base (b0b5f37) to head (602ffae).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #79 +/- ## ======================================= Coverage 95.62% 95.62% ======================================= Files 17 17 Lines 572 572 ======================================= Hits 547 547 Misses 25 25 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.