aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Merge branch 'main' into tags-revisionGravatar Matteo Bertucci2021-10-11-189/+430
|\
| * Merge pull request #1865 from python-discord/fix-bot-1858Gravatar ChrisJL2021-10-10-1/+9
| |\ | | | | | | Handle 400 when setting pre-existing doc package
| | * Fix typo in bot/exts/info/doc/_cog.py Gravatar Richard Si2021-10-10-1/+1
| | | | | | | | | | | | | | | it only took 5 people looking through the diff ... Co-authored-by: Bluenix <[email protected]>
| | * Handle 400 when setting pre-existing doc packageGravatar Richard Si2021-10-10-1/+9
| |/ | | | | | | | | | | | | | | | | | | 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.
| * Merge pull request #1630 from python-discord/kill-subdomainsGravatar Joe Banks2021-10-06-3/+3
| |\
| | * Merge branch 'main' into kill-subdomainsGravatar Joe Banks2021-10-06-0/+4
| | |\ | | |/ | |/|
| * | Merge pull request #1862 from python-discord/add-appeals-categoriesGravatar ChrisJL2021-10-06-0/+4
| |\ \ | | | | | | | | Add appeal categories to mod categories
| | * | Add appeal categories to mod categoriesGravatar Chris Lovering2021-10-06-0/+4
| |/ / | | | | | | | | | This allows us to run moderation commands in the appeal categories
| | * Kill subdomains from configuration file.Gravatar Johannes Christ2021-10-06-3/+3
| |/ | | | | | | | | This will need a coordinated rollout with @jb3, in order to make the appropriate changes in Kubernetes beforehand.
| * Merge pull request #1859 from python-discord/revert-1806-infract-then-dmGravatar Matteo Bertucci2021-10-06-10/+8
| |\ | | | | | | Revert "Apply infractions before DMing"
| | * Revert "Apply infractions before DMing"Gravatar Matteo Bertucci2021-10-06-10/+8
| |/
| * Merge pull request #1798 from python-discord/ignore-infra-mods-errorsGravatar Johannes Christ2021-10-05-7/+22
| |\ | | | | | | Prevent role hierarchy issues with infractions
| | * Merge branch 'main' into ignore-infra-mods-errorsGravatar TizzySaurus2021-10-05-8/+10
| | |\ | | |/ | |/|
| * | Merge pull request #1806 from python-discord/infract-then-dmGravatar Johannes Christ2021-10-05-8/+10
| |\ \ | | | | | | | | Apply infractions before DMing
| | * \ Merge branch 'main' into infract-then-dmGravatar Joe Banks2021-10-05-190/+420
| | |\ \ | | |/ / | |/| |
| | * | Apply infractions before DMingGravatar Izan2021-09-11-8/+10
| | | | | | | | | | | | | | | | 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).
| | | * Merge branch 'main' into ignore-infra-mods-errorsGravatar Joe Banks2021-10-05-323/+653
| | | |\ | | |_|/ | |/| |
| * | | Merge pull request #1854 from python-discord/minor-changes-to-typing-patchGravatar Johannes Christ2021-10-05-3/+3
| |\ \ \ | | | | | | | | | | Use utcnow() and lower a logging level in patch_typing
| | * \ \ Merge branch 'main' into minor-changes-to-typing-patchGravatar Johannes Christ2021-10-05-20/+48
| | |\ \ \ | | |/ / / | |/| | |
| * | | | Merge pull request #1855 from python-discord/antispam-log-improvementsGravatar Matteo Bertucci2021-10-05-8/+14
| |\ \ \ \ | | | | | | | | | | | | Improve anti-spam logs
| | * \ \ \ Merge branch 'main' into antispam-log-improvementsGravatar Matteo Bertucci2021-10-05-12/+34
| | |\ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge pull request #1824 from Numerlor/doc-fetch_inventory-error-badargGravatar wookie1842021-10-05-12/+34
| |\ \ \ \ \ | | | | | | | | | | | | | | Gracefully handle invalid inventory content when adding a new doc package
| | * \ \ \ \ Merge branch 'main' into doc-fetch_inventory-error-badargGravatar wookie1842021-10-05-170/+372
| | |\ \ \ \ \ | | |/ / / / / | |/| | | | |
| | * | | | | Display BadArgument to user when invalid header is raised in converterGravatar Numerlor2021-09-11-5/+10
| | | | | | |
| | * | | | | Raise InvalidHeaderError if inventory has invalid headerGravatar Numerlor2021-09-11-7/+24
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * | | Fix lintingGravatar TizzySaurus2021-10-05-0/+1
| | | | | | | | | | | | | | | | | | Reverted accidental line deletion
| | | * | | Fix if statement errorGravatar TizzySaurus2021-10-05-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | Adds `messages_as_list` for easy indexing of `self.messages.values()` Also updated the comment above if statement and tidied some code
| | | * | | Make attachments check explicitGravatar TizzySaurus2021-10-05-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: Matteo Bertucci <[email protected]>
| | | * | | Improvements to anti-spam log messageGravatar TizzySaurus2021-10-05-3/+9
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
| | | * | Use utcnow() and lower a logging level in patch_typingGravatar Chris Lovering2021-10-04-3/+3
| | |/ / | |/| |
| * | | Merge pull request #1853 from python-discord/catch-403-from-Typing-callsGravatar Matteo Bertucci2021-10-04-22/+55
| |\ \ \ | | | | | | | | | | Monkey patch http.send_typing to catch 403s
| | * | | Move all monkey patches to their own fileGravatar Chris Lovering2021-10-04-23/+22
| | | | |
| | * | | Monkey patch http.send_typing to catch 403sGravatar Chris Lovering2021-10-04-1/+35
| |/ / / | | | | | | | | | | | | Sometimes discord turns off typing events by throwing 403's, so we should catch those
| * | | Merge pull request #1841 from ↵Gravatar Johannes Christ2021-10-04-9/+66
| |\ \ \ | | | | | | | | | | | | | | | | | | | | python-discord/allow-helpers-to-edit-their-own-nomination-reason Allow helpers to edit their own nomination reason
| | * \ \ Merge branch 'main' into allow-helpers-to-edit-their-own-nomination-reasonGravatar Boris Muratov2021-10-04-61/+102
| | |\ \ \ | | |/ / / | |/| | |
| * | | | Merge pull request #1851 from python-discord/fix-hasattr-checkGravatar wookie1842021-10-03-2/+2
| |\ \ \ \ | | | | | | | | | | | | Handle channel category being None in antispam/malware checks
| | * | | | Handle channel category being None in antispam/malware checksGravatar wookie1842021-10-03-2/+2
| |/ / / / | | | | | | | | | | | | | | | The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category
| * | | | Merge pull request #1837 from python-discord/add-get-or-fetch-utilGravatar wookie1842021-10-03-59/+100
| |\ \ \ \ | | | | | | | | | | | | Add get or fetch util
| | * \ \ \ Merge branch 'main' into add-get-or-fetch-utilGravatar wookie1842021-10-03-5/+16
| | |\ \ \ \ | | |/ / / / | |/| | | |
| | * | | | Add new poetry tasks for pytestGravatar Chris Lovering2021-09-29-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | Rename channel helper to be consistent with other helpersGravatar Chris Lovering2021-09-29-6/+6
| | | | | |
| | * | | | Mock fetch_member in tests that user get_or_fetch nowGravatar Chris Lovering2021-09-29-6/+15
| | | | | |
| | * | | | Migrate all Guild.get_member calls to get_or_fetch_memberGravatar Chris Lovering2021-09-29-46/+53
| | | | | | | | | | | | | | | | | | | | | | | | This protects us against the guild cache not being fully populated with members.
| | * | | | Add get_or_fetch_member utilGravatar Chris Lovering2021-09-29-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | This is now needed, as we're a large server it's not guaranteed that the member cache will always be fully populated.
| | | * | | Check cache for Members and UsersGravatar Chris Lovering2021-10-03-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * | | Block helpers from editing nomination reasons in channels other than ↵Gravatar Chris Lovering2021-10-03-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | #nominations
| | | * | | Force kwargs when calling helper utilGravatar ChrisJL2021-10-03-1/+2
| | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | * | | Allow helpers to edit their own nomination reasonGravatar Chris Lovering2021-10-03-8/+60
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | python-news escape fixes (#1822)Gravatar TizzySaurus2021-09-29-5/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
| * | | Merge pull request #1848 from python-discord/add-more-supported-symbols-to-otnGravatar Matteo Bertucci2021-09-28-3/+4
| |\ \ \ | | | | | | | | | | Add LT and GT to supported otn chars