aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2024-03-26Ask for confirmation when banning members with elevated roles (#2316)Gravatar Robin-8/+75
* Add safeguard when banning staff * Update infractions.py * Fix logical error where user would not get banned * Update bot/exts/moderation/infraction/infractions.py Co-authored-by: Preocts <[email protected]> * Delete view if confirmed * Implement suggestions * Use instead of * Don't call timeout manually * Lint * Switch button colors * Remove message bind to view class * Set message property of view to sent message * Update poetry.lock * Remove unnecessary View initializer * Send message indicating if the infraction was cancelled or not * Remove feedback on confirm * Merge main into staff-ban-safeguard * Make invocation async * Make .stop() invocation sync again * Clean up code * Avoid truncating early and send message on timeout * Should probably move this, too * Fail safely * Move view to a new file * Break out confirmation into its own function --------- Co-authored-by: Preocts <[email protected]> Co-authored-by: Richard Si <[email protected]>
2024-03-26Fix type annotation in snekboxGravatar Mark-1/+1
Co-authored-by: wookie184 <[email protected]>
2024-03-26Snekbox: truncate blocked file extensionsGravatar Mark-62/+90
Avoid Discord's character limit for messages. Fix #2464
2024-03-26Attempt to fetch help post from cache before making an API requestGravatar Chris Lovering-1/+2
2024-03-26Always try to close help posts, even when closing message couldn't be sentGravatar Chris Lovering-1/+5
2024-03-26Check every 5 minutes for idle help channelsGravatar Chris Lovering-1/+10
This is to cover the case where a Discord outage causes us to miss a help post creation. I purposefully didn't use the discord.py task system here as this cog already has it's own scheduler and deals with closing all active tasks itself
2024-03-26Always cancel scheduled help post closes if present in scheduler when ↵Gravatar Chris Lovering-9/+5
rescheduling a task
2024-03-25Make help showable through button on command error message. (#2439)Gravatar wookie184-15/+51
* Make help showable through button on command error message. * Improve error message Improve error message for attempting to delete other users' command invocations Co-authored-by: Boris Muratov <[email protected]> * Use double quotes instead of single * Refactor to use `ViewWithUserAndRoleCheck` --------- Co-authored-by: Boris Muratov <[email protected]>
2024-03-25Bump pre-commit from 3.6.2 to 3.7.0 (#2969)Gravatar dependabot[bot]-5/+5
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.6.2 to 3.7.0. - [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.6.2...v3.7.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development 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>
2024-03-25Bump pytest-cov from 4.1.0 to 5.0.0 (#2970)Gravatar dependabot[bot]-7/+7
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 4.1.0 to 5.0.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-type: direct:development 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>
2024-03-25Bump rapidfuzz from 3.6.2 to 3.7.0 (#2971)Gravatar dependabot[bot]-93/+93
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.6.2 to 3.7.0. - [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases) - [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.6.2...v3.7.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>
2024-03-23Removed inactive users from `CODEOWNERS` (#2967)Gravatar Xithrius-13/+6
2024-03-22Bump ruff from 0.3.3 to 0.3.4Gravatar dependabot[bot]-20/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.3.3 to 0.3.4. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.3.3...v0.3.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2024-03-21Bump rapidfuzz from 3.6.1 to 3.6.2 (#2945)Gravatar dependabot[bot]-93/+93
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.6.1 to 3.6.2. - [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases) - [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.6.1...v3.6.2) --- updated-dependencies: - dependency-name: rapidfuzz dependency-type: direct:production 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>
2024-03-21update configuration tests (#2951)Gravatar Amrou Bellalouna-38/+28
The old test relied on the old system where we loaded config from a yaml file, which ended up doing nothing.
2024-03-21Bump tldextract from 5.1.1 to 5.1.2 (#2962)Gravatar dependabot[bot]-6/+7
Bumps [tldextract](https://github.com/john-kurkowski/tldextract) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/john-kurkowski/tldextract/releases) - [Changelog](https://github.com/john-kurkowski/tldextract/blob/master/CHANGELOG.md) - [Commits](https://github.com/john-kurkowski/tldextract/compare/5.1.1...5.1.2) --- updated-dependencies: - dependency-name: tldextract dependency-type: direct:production 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>