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

#101 Adds reason to blacklist #115

Closed
wants to merge 1 commit into from

Conversation

SnowyJaguar1034
Copy link
Contributor

@SnowyJaguar1034 SnowyJaguar1034 commented Feb 14, 2022

Summary
I updated the schemas.sql to add a blocked table which logs blocked member IDs, the guild their blocked from and the reason they were blocked.

I then updated core.py to accept a reason argument as part of the blacklist command. I updated the command to add in functionality of writing to the new blocked table however I kept in the old functionality for now. and .

I then subsequently updated direct_message.py, modmail_channel.py, and tools.py to be able to read the blocked table entries in any places it was already checking the blacklist entries of the data table.

Finally I updated core.py's whitelist and blacklistclear commands to remove one and all entries respectively.

Related issue(s)
#101 Add a reason for blocking users

Additional context
Add any other context or screenshots about the pull request here.

@SnowyJaguar1034
Copy link
Contributor Author

I hope I got all of the times blacklist was used

I updated the schemas.sql to add a `blocked` table which logs blocked member IDs, the guild their blocked from and the reason they were blocked.

I then updated core.py to accept a reason argument as part of the `blacklist` command. I updated the command to add in functionality of writing to the new `blocked` table however I kept in the old functionality for now. and .

I then subsequently updated direct_message.py, modmail_channel.py, and tools.py to be able to read the `blocked` table entries in any places it was already checking the blacklist entries of the data table.

Finally I updated core.py's `whitelist`  and `blacklistclear` commands to remove one and all entries respectively.
@chamburr chamburr closed this Feb 25, 2022
@chamburr chamburr reopened this Feb 25, 2022
@chamburr chamburr marked this pull request as draft May 18, 2022 06:46
@chamburr
Copy link
Owner

Closing due to age.

@chamburr chamburr closed this Dec 25, 2022
@Scyye Scyye mentioned this pull request Jan 13, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants