Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest messages not cached after restart #255

Open
olivier-b-be opened this issue Jun 27, 2022 · 0 comments
Open

Latest messages not cached after restart #255

olivier-b-be opened this issue Jun 27, 2022 · 0 comments
Labels
accepted bug Something isn't working

Comments

@olivier-b-be
Copy link
Contributor

Overview

When the bot restarts due to an update, a crash, or heroku's restart functionality (I believe this is a thing?) the bot currently does not cache the latest x amount of messages per channel. This means the delete or update events on recent messages posted before the restart won't be fired and thus won't be captured by the bot. This is definitely not ideal for the ghost ping functionality and the logging of message edits/deletes.

Expected Behaviour

When the bot is restarted it will cache the latest x amount of messages per channel so that events will trigger on those messages

Actual Behaviour

No messages are cached which means no events are fired on messages that were sent before the bot was restarted

@olivier-b-be olivier-b-be added the bug Something isn't working label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants