aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2023-04-11Bump rapidfuzz from 2.15.0 to 2.15.1Gravatar dependabot[bot]-92/+95
Bumps [rapidfuzz](https://github.com/maxbachmann/RapidFuzz) from 2.15.0 to 2.15.1. - [Release notes](https://github.com/maxbachmann/RapidFuzz/releases) - [Changelog](https://github.com/maxbachmann/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/maxbachmann/RapidFuzz/compare/v2.15.0...v2.15.1) --- updated-dependencies: - dependency-name: rapidfuzz dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-04-07Bump coverage from 7.2.2 to 7.2.3Gravatar dependabot[bot]-54/+54
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.2 to 7.2.3. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.2.2...7.2.3) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-04-07Bump beautifulsoup4 from 4.12.0 to 4.12.2Gravatar dependabot[bot]-5/+5
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) from 4.12.0 to 4.12.2. --- updated-dependencies: - dependency-name: beautifulsoup4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-04-07Correct log uploadGravatar Boris Muratov-1/+2
2023-04-07Increase search history from 10 messages to 100.Gravatar Steele Farnsworth-2/+2
100 is the maximum number that can be received in one request, so we may as well use that many. Also change a string `+=` to `=`.
2023-04-07Use correct method for nickname filterGravatar Boris Muratov-1/+1
2023-04-07Handle archival task of deleted postGravatar Boris Muratov-0/+6
2023-04-07Remove cooldown when post is deletedGravatar Boris Muratov-1/+5
2023-04-07Add thread name filteringGravatar Boris Muratov-35/+52
Additionally fixes the nickname filter not using the right object to take action and report.
2023-04-07Change the infractions button emoji to a notepadGravatar Boris Muratov-1/+1
2023-04-06Temporarily disable help post name checkGravatar Boris Muratov-2/+2
This doesn't work at the moment with the new filtering and a proper fix will be made later
2023-04-06Use the right variables in antispamGravatar Boris Muratov-6/+6
2023-04-06Clarify commentGravatar Boris Muratov-1/+1
2023-04-06.__origin__ -> get_originGravatar Boris Muratov-12/+21
2023-04-06Add in_guild attribute to FilterContextGravatar Boris Muratov-4/+8
2023-04-06Bump rapidfuzz from 2.13.7 to 2.15.0 (#2507)Gravatar dependabot[bot]-92/+92
Bumps [rapidfuzz](https://github.com/maxbachmann/RapidFuzz) from 2.13.7 to 2.15.0. - [Release notes](https://github.com/maxbachmann/RapidFuzz/releases) - [Changelog](https://github.com/maxbachmann/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/maxbachmann/RapidFuzz/compare/v2.13.7...v2.15.0) --- updated-dependencies: - dependency-name: rapidfuzz 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>
2023-04-06Include jump URL in mod log embed for infraction editsGravatar vivekashok1221-3/+12
2023-04-06Don't notify the user for filters triggered in DMs.Gravatar Boris Muratov-4/+9
2023-04-06Fix settings parser to work when no description and template firstGravatar Boris Muratov-1/+1
2023-04-06Adjust to site using dicts in additional_settings instead of JSON stringsGravatar Boris Muratov-8/+6
This is to make sure that the unique constraint always compares between dicts instead of sometimes dealing with nulls.
2023-04-05Bump sentry-sdk from 1.18.0 to 1.19.1 (#2511)Gravatar dependabot[bot]-5/+6
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.18.0 to 1.19.1. - [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.18.0...1.19.1) --- 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>
2023-04-05Bump pre-commit from 3.2.1 to 3.2.2 (#2509)Gravatar dependabot[bot]-5/+5
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.2.1 to 3.2.2. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.2.1...v3.2.2) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05Fix testGravatar Boris Muratov-1/+1
2023-04-05Fix infraction duration display for filter listsGravatar Boris Muratov-1/+1
2023-04-05Specify edited setting name in confirmation messageGravatar Boris Muratov-4/+8
2023-04-05Escape markdown in alert matchesGravatar Boris Muratov-1/+1
2023-04-05`domain/subdomains` -> `domain/only_subdomains` for clarityGravatar Boris Muratov-6/+6
Also changes the alert to use the full domain instead of the filter content.
2023-04-04Add warning not to pip install unrelated packages.Gravatar Steele Farnsworth-3/+3
This is in response to recent attacks where the attacker DMs someone who opens a thread and tells the thread opener to pip install a malicious package under the false pretense that it will solve their problem. The warning replaces "For more tips, check out our guide on asking good questions", which is stated in the thread closer embed.
2023-04-05Handle infracted user not being on the serverGravatar Boris Muratov-0/+7
This shouldn't happen in production, but just in case
2023-04-05Handle server possibly not having an iconGravatar Boris Muratov-1/+2
2023-04-05Properly format alert when there's no file extensionGravatar Boris Muratov-1/+1
2023-04-05Code style and clarificationsGravatar Boris Muratov-18/+17
2023-04-02Remove self-assignable helpers functionalityGravatar mbaruh-224/+1
2023-04-01Ping help thread owner if thread closes without engagement.Gravatar Steele Farnsworth-2/+13
Add logic to see if anyone other than the OP (or bots) engaged in a help thread when it closes for inactivity. Currently only looks at the last 10 messages. If not, includes a ping to the OP before the embed in the closing message.
2023-04-01Update ping cooldown for helpersGravatar bradtimmis-3/+3
2023-03-31Fix import order.Gravatar Steele Farnsworth-2/+1
2023-03-31Add blank line for linting.Gravatar Steele Farnsworth-0/+1
2023-03-31Make new helper role pingable for help request.Gravatar Steele Farnsworth-1/+3
Previously, the message from the bot requesting that new helpers answer off-topic questions did not cause a ping. Solved by this commit.
2023-04-01Avoid race conditions and stricter cooldownGravatar mbaruh-6/+11
2023-03-31Use broader heuristic for detecting questions.Gravatar Steele-13/+4
Namely just seeing if there's a question mark in it that isn't part of a URL.
2023-03-31Change "Help!" to "answer this!"Gravatar Steele-1/+1
It may occasionally be confusing why the bot thinks people need to "help" if there's a false positive (ie if the message is not a question).