| Commit message (Collapse) | Author | Age | Lines |
| |\ |
|
| | |\
| | |
| | | |
Handle 400 when setting pre-existing doc package
|
| | | |
| | |
| | |
| | |
| | | |
it only took 5 people looking through the diff ...
Co-authored-by: Bluenix <[email protected]>
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If you run, for example:
!doc setdoc black https://black.readthedocs/en/stable/objects.inv
twice over. You'll get an unhelpful "According to the API, your request
is malformed." error message back. This commit adds an error handler
to catch the HTTP 400 and tell the user the package already exists.
|
| | |\ |
|
| | | |\
| | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
Add appeal categories to mod categories
|
| | |/ /
| | |
| | |
| | | |
This allows us to run moderation commands in the appeal categories
|
| | |/
| |
| |
| |
| | |
This will need a coordinated rollout with @jb3, in order to make the
appropriate changes in Kubernetes beforehand.
|
| | |\
| | |
| | | |
Revert "Apply infractions before DMing"
|
| | |/ |
|
| | |\
| | |
| | | |
Prevent role hierarchy issues with infractions
|
| | | |\
| | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
Apply infractions before DMing
|
| | | |\ \
| | |/ /
| |/| | |
|
| | | | |
| | | |
| | | |
| | | | |
Bot now attempts to infract before DMing, with the exception of kicks/bans, in order to prevent the user getting sent a message stating they were infracted when the infraction failed (and so they aren't).
|
| | | | |\
| | |_|/
| |/| | |
|
| | |\ \ \
| | | | |
| | | | | |
Use utcnow() and lower a logging level in patch_typing
|
| | | |\ \ \
| | |/ / /
| |/| | | |
|
| | |\ \ \ \
| | | | | |
| | | | | | |
Improve anti-spam logs
|
| | | |\ \ \ \
| | |/ / / /
| |/| | | | |
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | | |
Gracefully handle invalid inventory content when adding a new doc package
|
| | | |\ \ \ \ \
| | |/ / / / /
| |/| | | | | |
|
| | | | | | | | |
|
| | | | |_|/ /
| | |/| | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If the requested inventory file has an invalid header, the resource
has most likely moved or the url was invalid. In case of adding a new
inventory, this error can be handled and displayed to the user.
For automatic fetching it'll stop the rescheduling as the request succeeded
but returned invalid content.
|
| | | | | | |
| | | | | |
| | | | | | |
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
|