aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | | | | 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.
| | | | | | | | | | * Missed a change for 43bed60Gravatar Shivansh-0072021-10-21-1/+1
| | | | | | | | | | |
| | | | | | | | | | * Fix helpers view perms check to use 'permissions_for'Gravatar Shivansh-0072021-10-21-3/+2
| | | | | | | | | | |
| | | | | | | | | | * avatar.url -> display_avatar.urlGravatar Shivansh-0072021-10-21-1/+1
| | | | | | | | | | |
| | | | | | | | | | * Fix incident webhook fetch validationGravatar Shivansh-0072021-10-19-2/+3
| | | | | | | | | | |
| | | | | | | | | | * Add message creation timestamp to message link embedGravatar Shivansh-0072021-10-19-1/+2
| | | | | | | | | | |
| | | | | | | | | | * Make docstring clear about max lengthGravatar Shivansh-0072021-10-19-2/+6
| | | | | | | | | | |
| | | | | | | | | | * Removing config validation checksGravatar Shivansh-0072021-10-19-5/+1
| | | | | | | | | | |
| | | | | | | | | | * Refactor shorten_text utility functionGravatar Shivansh-0072021-10-18-8/+10
| | | | | | | | | | |
| | | | | | | | | | * Merge remote-tracking branch 'upstream/main' into feature/enhance-incidentsGravatar Shivansh-0072021-10-17-712/+1036
| | | | | | | | | | |\ | |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | Merge pull request #1871 from ↵Gravatar ChrisJL2021-10-17-14/+24
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-discord/modlog-ingore-channels-mods-can't-view Modlog ignore channels mods can't view
| * | | | | | | | | | Remove unneeded config entriesGravatar Chris Lovering2021-10-17-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since channels that mods can't read are now implicitly ignored, there is no need to explicitly ignore them.
| * | | | | | | | | | Use modlog ignore function for voice events tooGravatar Chris Lovering2021-10-17-1/+2
| | | | | | | | | | |
| * | | | | | | | | | Refactor: Update modlog ignore function nameGravatar Chris Lovering2021-10-17-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new name better describes what this function actually does
| * | | | | | | | | | Ignore channels mod team can't view in modlogGravatar Chris Lovering2021-10-17-8/+19
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main purpose of this is so that we don't need to keep adding to the modlog_blacklist for every new channel we want to ignore, since it now implicitly ignores channels mods don't have read perms to. This is done by making use of Discord.py 2.0's updated behaviour of Channel.permissions_for() where it can now accept a role and determines the permissions of users in that role for a given channel. This takes into account default permissions as well as channel overrides. Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | | Modlog: remove tzinfo from member_join (#1877)Gravatar Matteo Bertucci2021-10-17-1/+1
| | | | | | | | | |
* | | | | | | | | | Migrate to Discord 2.0a0 Gravatar Matteo Bertucci2021-10-17-98/+288
|\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge remote-tracking branch 'origin/main' into discord-2.0Gravatar Matteo Bertucci2021-10-17-323/+420
| |\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Merge pull request #1875 from python-discord/ks123/bugfix/reapply-infractionGravatar ChrisJL2021-10-16-5/+9
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Do not try to calculate expiry if infraction is permanent on reapply
| * \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into ks123/bugfix/reapply-infractionGravatar ChrisJL2021-10-16-333/+429
| |\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #1872 from python-discord/experiments/isortGravatar ChrisJL2021-10-16-333/+429
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Experiment: add Isort to our toolchain
| * | | | | | | | | | | | Isort: set atomic to trueGravatar Matteo Bertucci2021-10-15-0/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge remote-tracking branch 'origin/main' into experiments/isortGravatar Matteo Bertucci2021-10-15-235/+277
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Actions: do not check licenses of dev packagesGravatar Matteo Bertucci2021-10-15-2/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | ISort: give the codebase a sortGravatar Matteo Bertucci2021-10-14-59/+20
| | | | | | | | | | | | |
| * | | | | | | | | | | | Remove flake8-import-orderGravatar Matteo Bertucci2021-10-14-71/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced by flake8-isort now that we use ISort
| * | | | | | | | | | | | Precommit: add ISortGravatar Matteo Bertucci2021-10-14-0/+5
| | | | | | | | | | | | |
| * | | | | | | | | | | | Add ISort to this projectGravatar Matteo Bertucci2021-10-14-220/+353
| | | | | | | | | | | | |
| | * | | | | | | | | | | Do not try to calculate expiry if infraction is permanent on reapplyGravatar ks1292021-10-16-5/+9
| |/ / / / / / / / / / / |/| | | | | | | | | | |
| | * | | | | | | | | | Merge branch 'main' into discord-2.0Gravatar Matteo Bertucci2021-10-15-242/+282
| | |\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #1874 from python-discord/fix-bot-1869Gravatar Matteo Bertucci2021-10-15-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Fix community/staff members not being able to mention users in `!remind`
| * | | | | | | | | | | | Update `isinstance` checkGravatar TizzySaurus2021-10-14-1/+1
|/ / / / / / / / / / / /
* | | | | | | | | | | | Merge pull request #1831 from python-discord/custom-logger-classGravatar ChrisJL2021-10-14-224/+228
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Add `CustomLogger` to prevent IDE lint warnings when calling `log.trace`.
| * | | | | | | | | | | | Fix newlines after imports and address reviewGravatar Izan2021-10-14-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's now always one blank line (no more, no less) after an import
| * | | | | | | | | | | | Migrate to `bot.log.get_logger` functionGravatar Izan2021-10-14-206/+199
| | | | | | | | | | | | |
| * | | | | | | | | | | | Add `CustomLogger` to bot/log.pyGravatar Izan2021-10-14-18/+33
|/ / / / / / / / / / / /
* | | | | | | | | | | | Add a contribute tag which explains how to contribute to PyDis projectsGravatar Janine vN2021-10-14-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add contribute tag * Adjust wording Adjusts the wording in the tag from feedback Co-authored-by: TizzySaurus <[email protected]> Co-authored-by: ChrisJL <[email protected]>
* | | | | | | | | | | | Send `!defcon threshold` message in `channel` as well as #defcon. (#1856)Gravatar TizzySaurus2021-10-14-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | | | | Merge pull request #1860 from python-discord/fix-infract-then-dmGravatar ChrisJL2021-10-14-2/+12
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt infraction before DMing
| * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into fix-infract-then-dmGravatar ChrisJL2021-10-14-7/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
* | | | | | | | | | | | | Send the user's mention in the `watch` command. (#1867)Gravatar Qwerty-1332021-10-14-4/+4
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #1861 from python-discord/solve-bot-1852Gravatar ChrisJL2021-10-14-3/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / |/| | | | | | | | | | | | Distinguish between note/warning and expired infraction