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

Permanent Mutes #84

Open
navarr opened this issue Aug 14, 2020 · 1 comment
Open

Permanent Mutes #84

navarr opened this issue Aug 14, 2020 · 1 comment
Assignees
Milestone

Comments

@navarr
Copy link
Member

navarr commented Aug 14, 2020

Acceptance Criteria

  • When a user is muted, leaves the server, and later rejoins the server, the mute persists.
  • Such a mute persists even if the bot script restarts

Technical Notes

I thought this would require a database, but I suppose it shouldn't. This functionality could be possible by keeping a map of DiscordIDs (to boolean true, for quick lookup) of muted users in memory. When the bot starts, it could find all users with the role and add them to the array (and then update the array throughout the !mute and !unmute commands). This would allow persistence without necessitating an external data layer.

@navarr navarr added this to the v1.3 milestone Aug 14, 2020
@navarr navarr self-assigned this Aug 28, 2020
@McJeffr McJeffr closed this as completed Apr 30, 2021
@navarr navarr reopened this May 3, 2021
@navarr
Copy link
Member Author

navarr commented May 3, 2021

@McJeffr I'm reopening because the current system does not seem to be working perfectly. We may need a true datastore to finish this task

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

2 participants