aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | | * | | | | | | New filtering backbone and regex filtering migrationGravatar mbaruh2022-07-16-0/+1494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit provides the basis of the new filtering system: - The filtering cog consists of several filter lists loaded from the database (filtering.py). - Each filter list contains a list of filters, which are run in response to events (message posting, reaction, thread creation). Each filter list may choose to respond to different events (the subscribe method in filtering.py). - Each filter has settings (settings.py) which decide when it is going to be run (e.g it might be disabled in a specific channel), and what will happen if it triggers (e.g delete the offending message). - Not every filter has a value for every setting (the _settings_types package) . It will use the default settings specified by its filter list as a fallback. - Since each filter might have a different effect when triggered, we must check all relevant filters even if we found a triggered filter already, unlike in the old system. - Two triggered filters may specify different values for the same setting, therefore each entry has a rule for combining two different values (the __or__ method in each file in _settings_types). To avoid having to prefix each file with an underscore (or the bot will try to load it as a cog), the loading script was changed to ignore packages with names starting with an underscore. Alert sending is done via a webhook so that several embeds can be sent in the same message (will be useful for example for guild invite alerts). Filter lists and setting entries classes are loaded dynamically from their respective packages. In order to be able to test the new features, this commit also includes a migration of the regex-based filtering.
| | | | | * | | | | | | Tear down the old filtering systemGravatar mbaruh2022-07-15-3702/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests and dependent functionality in other extensions will be re-added later on.
| | | | | | | | | | * | Fix: use nomination.user_id instead of id in get_or_fetch_memberGravatar wookie1842023-03-25-1/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Merge branch 'main' into 2302-activity-in-reviewsGravatar wookie1842023-03-25-3221/+3818
| | | | | | | | | | |\ \ | | | | | |_|_|_|_|_|/ / | | | | |/| | | | | | |
| | | | | | | | | | * | Make show_* arguments to list_nominations keyword onlyGravatar wookie1842023-03-04-0/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Split default nomination listing into groupsGravatar wookie1842023-03-04-37/+101
| | | | | | | | | | | |
| | | | | | | | | | * | Bump inactivity removal threshold and display in messageGravatar wookie1842023-03-04-2/+3
| | | | | | | | | | | |
| | | | | | | | | | * | Use get_or_fetch_channel instead of get_channelGravatar wookie1842023-03-02-2/+2
| | | | | | | | | | | |
| | | | | | | | | | * | Send a message when a user is unnominated due to being bannedGravatar wookie1842023-02-26-1/+6
| | | | | | | | | | | |
| | | | | | | | | | * | Update tp list command, making it sort by review order by defaultGravatar wookie1842023-02-26-33/+56
| | | | | | | | | | | |
| | | | | | | | | | * | Prune inactive users from the talentpoolGravatar wookie1842023-02-26-2/+45
| | | | | | | | | | | |
| | | | | | | | | | * | Add tests for new behaviourGravatar wookie1842023-02-26-3/+20
| | | | | | | | | | | |
| | | | | | | | | | * | Only review users with recent activityGravatar wookie1842023-02-26-32/+66
| | | | | | | | | | | |
| | | | | | | | | | * | Add nominations api method to get activityGravatar wookie1842023-02-26-0/+18
| | | | | | | | | | | |
| | | | | | | | | | * | Add nomination_discussion channel constantGravatar wookie1842023-02-26-0/+2
| | | | | | | | | | | |
| | | | | | | | | | | * Include jump URL in mod log embed for infraction editsGravatar vivekashok12212023-04-06-3/+12
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | Bump sentry-sdk from 1.17.0 to 1.18.0 (#2497)Gravatar dependabot[bot]2023-03-30-5/+5
| |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.17.0 to 1.18.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.17.0...1.18.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | | Merge pull request #2388 from brodycritchlow/inplace-tagGravatar Boris Muratov2023-03-30-0/+22
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Add new inplace tag
| * \ \ \ \ \ \ \ \ \ Merge branch 'main' into inplace-tagGravatar Brody Critchlow2023-03-29-171/+194
| |\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Bump regex from 2022.10.31 to 2023.3.23 (#2485)Gravatar dependabot[bot]2023-03-29-92/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2022.10.31 to 2023.3.23. - [Release notes](https://github.com/mrabarnett/mrab-regex/releases) - [Commits](https://github.com/mrabarnett/mrab-regex/compare/2022.10.31...2023.3.23) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | | | Merge pull request #2496 from python-discord/update-base-iamgeGravatar Boris Muratov2023-03-29-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Update base image to new repo org
| * | | | | | | | | | | Update base image to new repo orgGravatar Chris Lovering2023-03-29-1/+1
|/ / / / / / / / / / /
* | | | | | | | | | | Merge pull request #2432 from shtlrs/bump-python-version-to-3-11Gravatar ChrisJL2023-03-29-76/+127
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Bump python version to 3 11
| * | | | | | | | | | | Replace mock._importer with pkgutil.resolve_name in test autospecGravatar shtlrs2023-03-29-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mock._importer was removed in 3.11
| * | | | | | | | | | | Upgrade to Python 3.11 in CI & DockerfileGravatar shtlrs2023-03-29-2/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Upgrade to Python 3.11 in pyproject.tomlGravatar shtlrs2023-03-29-73/+123
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also bumps some dev deps to latest
* | | | | | | | | | | Merge pull request #2487 from python-discord/wookie184-botstrap-errorGravatar Boris Muratov2023-03-29-4/+4
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | | Improve wording in botstrap error
| * | | | | | | | | | Improve wording in botstrap errorGravatar wookie1842023-03-24-4/+4
|/ / / / / / / / / /
| * | | | | | | | | Fix InPlace precommit issuesGravatar brody critchlow2023-03-29-1/+1
| | | | | | | | | |
| * | | | | | | | | Merge branch 'main' into inplace-tagGravatar Brody Critchlow2023-03-28-3229/+3840
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Bump beautifulsoup4 from 4.11.2 to 4.12.0 (#2480)Gravatar dependabot[bot]2023-03-24-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | | Bump pre-commit from 3.1.1 to 3.2.0 (#2479)Gravatar dependabot[bot]2023-03-24-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | | Bump pydantic from 1.10.6 to 1.10.7 (#2481)Gravatar dependabot[bot]2023-03-24-39/+39
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | Bump deepdiff from 6.2.3 to 6.3.0 (#2475)Gravatar dependabot[bot]2023-03-21-60/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | Bump coverage from 7.2.1 to 7.2.2 (#2473)Gravatar dependabot[bot]2023-03-21-54/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | Bump flake8-bugbear from 23.2.13 to 23.3.12 (#2468)Gravatar dependabot[bot]2023-03-21-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | Add tag for Discord bot hosting (#2472)Gravatar Robin2023-03-21-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | Enable sentry profiling (#2478)Gravatar ChrisJL2023-03-21-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | Bump sentry-sdk from 1.16.0 to 1.17.0 (#2474)Gravatar dependabot[bot]2023-03-21-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | Merge pull request #2469 from python-discord/dependabot/pip/pytest-xdist-3.2.1Gravatar wookie1842023-03-21-5/+5
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | Bump pytest-xdist from 3.2.0 to 3.2.1
| * | | | | | | | Bump pytest-xdist from 3.2.0 to 3.2.1Gravatar dependabot[bot]2023-03-21-5/+5
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.2.0 to 3.2.1. - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.2.0...v3.2.1) --- updated-dependencies: - dependency-name: pytest-xdist dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
* | | | | | | | Override context command explicitly in antispam filter(#2477)Gravatar Amrou Bellalouna2023-03-20-2/+4
| | | | | | | |
* | | | | | | | Merge pull request #2476 from python-discord/remove_muted_roleGravatar Boris Muratov2023-03-20-29/+0
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Remove usage of the muted role
| * | | | | | | | Remove usage of the muted roleGravatar mbaruh2023-03-20-29/+0
|/ / / / / / / /
* | | | | | | | Merge pull request #2438 from python-discord/mbaruh/timeoutGravatar Boris Muratov2023-03-20-65/+100
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Migrate from role-based mutes to native timeouts
| * \ \ \ \ \ \ \ Merge branch 'main' into mbaruh/timeoutGravatar Boris Muratov2023-03-20-144/+172
| |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #2470 from python-discord/fix-channel-blacklistGravatar Amrou Bellalouna2023-03-14-1/+1
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | Fix typehint that broke duckpond channel blacklist
| * | | | | | | | Fix pydantic model that prevented channel blacklist from workingGravatar TizzySaurus2023-03-14-1/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #2463 from shtlrs/preserve-personal-configGravatar Amrou Bellalouna2023-03-12-3/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Preserve personal config
| * \ \ \ \ \ \ \ Merge branch 'main' into preserve-personal-configGravatar Hassan Abouelela2023-03-12-140/+165
| |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |