aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | | | | | | | | | 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
| * | | | | | | | | | | | | | | Add LT and GT to supported otn charsGravatar Chris Lovering2021-09-27-3/+4
|/ / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | Merge pull request #1825 from Numerlor/scheduling-create_task-initGravatar Xithrius2021-09-26-55/+85
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use scheduling create_task util to create tasks
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into scheduling-create_task-initGravatar Xithrius2021-09-26-15/+44
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #1846 from ↵Gravatar Johannes Christ2021-09-25-1/+14
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-discord/suppress-notfound-messages-on-delete Suppress NotFound for batch deletion.
| * | | | | | | | | | | | | | | | Suppress NotFound for batch deletion.Gravatar Johannes Christ2021-09-24-1/+14
|/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | | | | | | | | | Use create_task util instead of asyncio.create_taskGravatar Numerlor2021-09-11-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The util attaches an error logging callback instead of relying on python's exception logging which only occurs when the task is destroyed
| * | | | | | | | | | | | | | | Use scheduling create_task util instead of creating from loop directlyGravatar Numerlor2021-09-11-47/+79
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The util attaches an error logging callback instead of relying on python's exception logging which only occurs when the task is destroyed
| | * | | | | | | | | | | | | Use `isinstance` instead of `hasattr` to determine if `Member`Gravatar Izan2021-10-05-2/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Fix testsGravatar Izan2021-09-01-6/+9
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Fix role hierarchy checkGravatar Izan2021-09-01-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now uses `>=` instead of `>`, as is meant to happen.
| | * | | | | | | | | | | | | Prevent infractions raising error due to role hierarchyGravatar Izan2021-09-01-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now explicitly states that the bot is unable to starify/kick/ban someone who's higher in the role hierarchy
| | | | | * | | | | | | | | | Test incidents: correct avatar referenceGravatar Matteo Bertucci2021-10-05-1/+1
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Defcon: ignore create thread permsGravatar Matteo Bertucci2021-10-05-4/+0
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | avatar.url -> display_avatar.urlGravatar Matteo Bertucci2021-10-05-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | avatar can apparently be none, which means traceback and a very sad akarys
| | | | | * | | | | | | | | | Modlog: change thread logging to past-tenseGravatar Matteo Bertucci2021-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | * | | | | | | | | | Bot: remove inaccurate docstringsGravatar Matteo Bertucci2021-09-19-1/+0
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Bot: update comment on joining threadsGravatar Matteo Bertucci2021-09-19-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | * | | | | | | | | | Modlog: reuse logic for the message blacklistGravatar Matteo Bertucci2021-09-19-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | * | | | | | | | | | Modlog: thread supportGravatar Matteo Bertucci2021-09-15-0/+58
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Defcon: add thread perms to (un)shutdownGravatar Matteo Bertucci2021-09-15-2/+16
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Silence tests: use thread permsGravatar Matteo Bertucci2021-09-15-10/+54
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Silence: remove thread related permissionsGravatar Matteo Bertucci2021-09-12-2/+16
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Modlog: respect blacklist with threadsGravatar Matteo Bertucci2021-09-12-19/+36
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Silence: forbid threads from being silencedGravatar Matteo Bertucci2021-09-06-1/+7
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Make the bot auto-join threadsGravatar Matteo Bertucci2021-09-06-1/+17
| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | Migrate to Discord.py 2.0a0Gravatar Matteo Bertucci2021-09-06-139/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the Discord.py repository has been archived, we can switch to the latest commit of 2.0a0, knowing no breaking change will occur (still pinned to the commit just in case). This commits fixes any problem related to the migration: - New avatar interface - TZ aware datetimes - Various inernal API changes
| | | | | | * | | | | | | | | Raise for status to prevent parsing of invalid pagesGravatar Numerlor2021-08-31-1/+1
| | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | Delete stale item counters when clearing doc cacheGravatar Numerlor2021-08-30-0/+13
| | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | Prevent erroneous symbols from always raising stale warningsGravatar Numerlor2021-08-30-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some doc symbols are improperly generated and never exist on the doc page the inventory file defines them in, causing the stale warning to get raised every time the page is parsed (at a maximum every week because of the redis expire). This can be prevented by keeping a counter in redis for the items which were stale, every time the item is warned for the counter is incremented and set to expire in 3 weeks. Then a warning is only raised when the counter is below 3, resulting in the unpreventable warning only being raised twice until it is fixed by the maintainers after it expires in 3 weeks after the last increment.
| | | | | | * | | | | | | | | create a helper function to get the redis key of a doc itemGravatar Numerlor2021-08-30-12/+5
| | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | Update infraction DM tests to reflect new outputGravatar Chris Lovering2021-09-24-10/+10
| | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | Direct users to the appeals server when bannedGravatar Chris Lovering2021-09-24-10/+10
| |_|_|_|_|_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a new appeals process we are trialing. Users who get banned join this server and DM a modmail bot, who relays the message to the main server for mods to discuss. I have updated the shortening logic to allow for extra information to be included at the end of the embed, while still staying under the limit.
| | | | | | | * | | | | | | Update log message for when author isn't `discord.Member`Gravatar Izan2021-10-19-2/+1
| | | | | | | | | | | | | |
| | | | | | | * | | | | | | Invert `isinstance` check as per reviewGravatar Izan2021-10-19-3/+6
| | | | | | | | | | | | | |
| | | | | | | * | | | | | | Add handling for when `message.author` is a `discord.User`Gravatar Izan2021-09-24-6/+11
| |_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: Will give a sentry warning when this happens.
* | | | | | | | | | | | | Merge pull request #1843 from python-discord/fix-paste-site-inconsistencyGravatar Matteo Bertucci2021-09-23-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update paste-site URL in `!paste`
| * | | | | | | | | | | | | Use full paste linkGravatar Izan2021-09-23-1/+1
|/ / / / / / / / / / / / /
* | | | | | | | | | | | | Merge pull request #1840 from python-discord/mbaruh-patch-1Gravatar ChrisJL2021-09-21-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / / / |/| | | | | | | | | | | | Add `cog` as an alias to extensions command
| * | | | | | | | | | | | Add `cog` as an alias to extensions commandGravatar Boris Muratov2021-09-21-1/+1
|/ / / / / / / / / / / /
* | | | | | | | | | | | Merge pull request #1838 from python-discord/remove-coverallsGravatar Joe Banks2021-09-20-7/+0
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Remove coveralls from lint-testGravatar Izan2021-09-20-7/+0
|/ / / / / / / / / / /
* | | | | | | | | | | Merge pull request #1820 from python-discord/add-metricity-to-composeGravatar ChrisJL2021-09-17-2/+23
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add metricity to docker-compose
| * | | | | | | | | | | Remove duplicate roles when defining allowed_mentionsGravatar Chris Lovering2021-09-17-1/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Add metricity to docker-composeGravatar Chris Lovering2021-09-17-1/+22
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | | Merge pull request #1826 from python-discord/ignore-votingGravatar ChrisJL2021-09-11-3/+5
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | | Adds Core Dev Voting To Changelog Blacklist
| * | | | | | | | | | Adds Core Dev Voting To Changelog BlacklistGravatar Hassan Abouelela2021-09-11-3/+5
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the channel used for voting on contributors to the message changelog blacklist. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Merge pull request #1788 from ↵Gravatar ChrisJL2021-09-09-8/+4
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-discord/Only-check-domain-filters-against-URL-like-parts-of-a-message Only check URL-like objects against domain filters