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

Message Restoration. #3346

Open
2 tasks
wendingos opened this issue Jul 20, 2024 · 2 comments
Open
2 tasks

Message Restoration. #3346

wendingos opened this issue Jul 20, 2024 · 2 comments

Comments

@wendingos
Copy link

Is your feature request related to a problem? Please elaborate.

Whenever my bot has random downtimes, due to self-hosting problems, it's frustrating for our support team who is either in the middle of a thread resolving potential issues, or answering general questions. it is frustrating for both the members and the support team.

Describe the solution you'd like

Message Restoration,

The purpose of this feature is to help self-hosters, or whenever the bot has downtime. Whenever the Modmail bot goes offline, and a member who created the thread sends messages during downtime, when it comes back online it will send the messages that were originally sent during the bot's downtime, with the message "Messages restored from downtime" Or customizable at user request.

Does your solution involve any of the following?

  • Logviewer
  • New config option

Describe alternatives you've considered

I have considered the alternative of just asking the user what, or if they sent any messages during the bot's downtime. However. this feature will be for the peace of mind, and ease-of-use for the member, and staff.

Who will this benefit?

This will benefit the majority of self-hosters who struggle with bot downtime, or other users in general when the bot is down, or performing other miscellaneous maintenance actions.

Additional Information

No response

@martinbndr
Copy link
Contributor

martinbndr commented Jul 20, 2024

That should need to be a new config option if ever implemented since this feature should not run by default. Modmail is on communities with large amount of members and if their bot is down temporarily it might cause too many API requests to Discord since the bot needs to fetch all those messages for every user to gain its content etc. Specially users sending multiple messages or even spam the modmail due to being offline.

@raidensakura
Copy link
Member

Aside from the API concerns, this will require a severe undertaking on the codebase, plus the fact Modmail doesn't store anything locally and is made to be immutable makes it unrealistic to have such feature. One can simply circumvent downtime by setting up a failover server for high availability. I believe that's a more practical solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants