| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
Reverted accidental line deletion
|
| |
|
|
| |
Adds `messages_as_list` for easy indexing of `self.messages.values()`
Also updated the comment above if statement and tidied some code
|
| |
|
| |
Co-authored-by: Matteo Bertucci <[email protected]>
|
| |
|
|
|
|
|
| |
- Removed redundant f-string
- Made it so that messages with attachments will *always* upload to the log site.
- Made it so that truncates messages will also upload to the paste site, for full viewing.
- Fixed a previously unnoticed bug where truncating didn't account for extra characters of the ellipses.
|
| |\
| |
| | |
Monkey patch http.send_typing to catch 403s
|
| | | |
|
| |/
|
|
| |
Sometimes discord turns off typing events by throwing 403's, so we should catch those
|
| |\
| |
| |
| |
| | |
python-discord/allow-helpers-to-edit-their-own-nomination-reason
Allow helpers to edit their own nomination reason
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | | |
Handle channel category being None in antispam/malware checks
|
| |/ /
| |
| |
| | |
The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category
|
| |\ \
| | |
| | | |
Add get or fetch util
|
| | |\ \
| |/ /
|/| | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Updated the test task to now run with --ff which runs failed tests from the last run first
Added retest, which runs pytest with --lf this only runs the failed tests from the last test run
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
This protects us against the guild cache not being fully populated with members.
|
| | | |
| | |
| | |
| | | |
This is now needed, as we're a large server it's not guaranteed that the member cache will always be fully populated.
|
| | | |
| | |
| | |
| | | |
By swapping the isinstance to check for int, the else block now catches the case where target is Member or User, this allows for editting the nomination reason of members that are off server.
|
| | | |
| | |
| | |
| | | |
#nominations
|
| | | |
| | |
| | | |
Co-authored-by: Bluenix <[email protected]>
|
| | |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change will allow helpers to run the edit reason command in the Talentpool cog.
To ensure that non-mod helpers can only edit their own reasons the interface for the reason command has been changed slightly.
If nominee_or_nomination_id is a member or user, then the command edits the currently active nomination for that person.
If it's an int, then use this to look up that nomination ID to edit.
If no nominator is specified, assume the invoker is editing their own nomination reason.
Otherwise, edit the reason from that specific nominator.
Raise a permission error if a non-mod staff member invokes this command on a
specific nomination ID, or with an nominator other than themselves.
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix escapes in python-news posts
No longer escapes markdown inside of codeblocks or pre-escaped markdown.
Co-authored-by: Ryu18 <[email protected]>
* Add escaping to title of py-news posts
* Fix typo
Co-authored-by: Ryu18 <[email protected]>
|
| |\
| |
| | |
Add LT and GT to supported otn chars
|
| |/ |
|
| |\
| |
| | |
Use scheduling create_task util to create tasks
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | |
| | |
| | | |
python-discord/suppress-notfound-messages-on-delete
Suppress NotFound for batch deletion.
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I will copy my comment from the code, as it explains why we want this:
In the rare case where we found messages matching the spam filter across
multiple channels, it is possible that a single channel will only
contain a single message to delete. If that should be the case,
discord.py will use the "delete single message" endpoint instead of the
bulk delete endpoint, and the single message deletion endpoint will
complain if you give it that does not exist. As this means that we have
no other message to delete in this channel (and message deletes work
per-channel), we can just log an exception and carry on with business.
|
| |\ \
| | |
| | | |
Update paste-site URL in `!paste`
|
| |/ / |
|
| |\ \
| | |
| | | |
Add `cog` as an alias to extensions command
|
| |/ / |
|
| |\ \ |
|
| |/ / |
|
| |\ \
| | |
| | | |
Add metricity to docker-compose
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| | |
By adding metricity to the compose, we allow it to migrate itself, rather than needing the site to do it.
Defaulting 'USE_METRICITY' to false means that it will run migrations, but not actually start the bot. This means we don't add another service that needs to run all the time, which could impact some contribs on lower powered hardware.
|
| |\ \
| | |
| | | |
Adds Core Dev Voting To Changelog Blacklist
|
| |/ /
| |
| |
| |
| |
| |
| | |
Adds the channel used for voting on contributors to the message
changelog blacklist.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |
| |
| |
| |
| | |
The util attaches an error logging callback instead of relying on python's
exception logging which only occurs when the task is destroyed
|
| |/
|
|
|
| |
The util attaches an error logging callback instead of relying on python's
exception logging which only occurs when the task is destroyed
|
| |\
| |
| |
| |
| | |
python-discord/Only-check-domain-filters-against-URL-like-parts-of-a-message
Only check URL-like objects against domain filters
|
| | |\
| |/
|/|
| | |
Only-check-domain-filters-against-URL-like-parts-of-a-message
|
| |\ \
| | |
| | | |
Add string-formatting tag
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Declare TalentPool.cache on init of cog
|
| | |\ \ \
| |/ / /
|/| | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This raised questions from helpers when they saw that someone had many previous nominations. There is no reason why a helper needs to see this information.
|