aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2024-04-01Also sync the user's display_name in the user syncerGravatar Chris Lovering-0/+2
2024-04-01Wait 10 seconds before syncing the guild & usersGravatar Chris Lovering-7/+14
This will give other cogs a chance to start up
2024-04-01Allow extra channels to be ignored by the duck pond cog (#2990)Gravatar ChrisJL-2/+8
We want to be able to expand the list of channels ignored by duckpond, without having to add the entire list of default channels first.
2024-03-30Send log messages for voice gate pass and fail to #voice-logGravatar Joe Banks-1/+27
2024-03-30Reword voice gate criteria for user and mod side formattingGravatar Joe Banks-5/+7
2024-03-30Bump Python to 3.12Gravatar Chris Lovering-235/+239
2024-03-30Bum botcore to 11.1.0Gravatar Chris Lovering-124/+99
A pydantic version bump is also required due to latest requirements from bot-core
2024-03-29notify mods about timeout cap upon editGravatar shtlrs-21/+24
2024-03-29apply timeouts on members who left the serverGravatar shtlrs-1/+27
If timeout was edited to a longer duration, members could evade being timeout upon rejoining, so we reapply them if that's the case
2024-03-29cap timeout duration upon editGravatar shtlrs-8/+25
2024-03-29do not edit discord timeout for users who left the serverGravatar shtlrs-1/+1
if a user isn't a member of the server, trying to edit their timeout will result in an error
2024-03-29allow timeout editsGravatar shtlrs-6/+9
2024-03-29Bump sentry-sdk from 1.43.0 to 1.44.0 (#2986)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.43.0 to 1.44.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.43.0...1.44.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>
2024-03-29Bump lxml from 5.1.0 to 5.1.1 (#2984)Gravatar dependabot[bot]-82/+78
Bumps [lxml](https://github.com/lxml/lxml) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-5.1.0...lxml-5.1.1) --- updated-dependencies: - dependency-name: lxml 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-29Bump pip-licenses from 4.3.4 to 4.4.0 (#2985)Gravatar dependabot[bot]-5/+5
Bumps [pip-licenses](https://github.com/raimon49/pip-licenses) from 4.3.4 to 4.4.0. - [Release notes](https://github.com/raimon49/pip-licenses/releases) - [Changelog](https://github.com/raimon49/pip-licenses/blob/master/CHANGELOG.md) - [Commits](https://github.com/raimon49/pip-licenses/compare/v-4.3.4...v-4.4.0) --- updated-dependencies: - dependency-name: pip-licenses 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-28Bump markdownify from 0.11.6 to 0.12.1 (#2983)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26Enable Sentry performance tracingGravatar Chris Lovering-0/+1
2024-03-26Move sentry initialisation to after the event loop is createdGravatar Chris Lovering-1/+2
This is required for the sentry asyncio integration
2024-03-26Remove sentry sample rates and add asyncio integration (#2979)Gravatar ChrisJL-4/+2
2024-03-26Add sentry performance spans to thread bumper cogGravatar Chris Lovering-17/+23
2024-03-26Add sentry performance spans to subscribe cogGravatar Chris Lovering-15/+19
2024-03-26Add sentry performance spans to news cogGravatar Chris Lovering-13/+17
2024-03-26Capture cog load times using sentry performance trackingGravatar Chris Lovering-1/+6
2024-03-26Bump emoji from 2.10.1 to 2.11.0 (#2974)Gravatar dependabot[bot]-7/+7
Bumps [emoji](https://github.com/carpedm20/emoji) from 2.10.1 to 2.11.0. - [Release notes](https://github.com/carpedm20/emoji/releases) - [Changelog](https://github.com/carpedm20/emoji/blob/master/CHANGES.md) - [Commits](https://github.com/carpedm20/emoji/compare/v2.10.1...v2.11.0) --- updated-dependencies: - dependency-name: emoji 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-26Remove the DM sent to users when they open a help postGravatar Chris Lovering-41/+0
This is no longer needed now that the new forum channel used for the help system automatically have the new post shown in the channel list
2024-03-26Remove the help-dm featureGravatar Chris Lovering-109/+1
This feature allowed users to opt-in to getting DMs from the bot whenever someone messaged in a help channel they we participating in. This was useful in the old channel-based help system as it was hard to remember which channels you were participating in. Now that we've moved over to the forum channel, this is no longer an issue, as posts you are participating in now appear in the channel list, and others don't.
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>