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

Implement allowlist and blocklist #120

Merged

Conversation

svierne
Copy link
Contributor

@svierne svierne commented Dec 24, 2023

This PR implements both allowlisting and blocklisting regexes of MXIDs.

I have not completely tested these changes yet, this is still a draft version to allow the maintainers to do an initial review and request changes before I do final testing.

@HarHarLinks What do you think? I'm still thinking about whether or not the bot should respond with an error message when receiving a message from a disallowed user. Especially with open issues of the bot spamming duplicate responses to old messages, I personally think we should just drop the events without any response. But this may be bad UX for accidentally disallowed users.

Copy link
Collaborator

@HarHarLinks HarHarLinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work, very nice PR over all. One suggestion for a small change and another point open for discussion. :)

matrix_reminder_bot/config.py Outdated Show resolved Hide resolved
matrix_reminder_bot/callbacks.py Outdated Show resolved Hide resolved
@HarHarLinks HarHarLinks self-assigned this Dec 26, 2023
@HarHarLinks HarHarLinks added the enhancement New feature or request label Dec 26, 2023
@svierne
Copy link
Contributor Author

svierne commented Dec 28, 2023

I will now test the implementation more thoroughly and remove the WIP tag when I'm done testing.

@HarHarLinks
Copy link
Collaborator

(CI failing on python 3.12 is expected: #112)

@svierne svierne changed the title [WIP] Implement allowlist and blocklist Implement allowlist and blocklist Jan 4, 2024
@svierne svierne marked this pull request as ready for review January 4, 2024 18:44
@svierne
Copy link
Contributor Author

svierne commented Jan 4, 2024

Seems to be working as expected. Good to merge from my side. (:

@HarHarLinks HarHarLinks merged commit e3cfd5a into anoadragon453:master Jan 5, 2024
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants