aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils (follow)
Commit message (Collapse)AuthorAgeLines
* Bump Pydis core to v11 (#1478)Gravatar Amrou Bellalouna2024-03-20-121/+6
|
* Use paginator from botcore (#1444)Gravatar Amrou Bellalouna2024-03-11-261/+52
|
* Always use the get_logger func from bot-coreGravatar Chris Lovering2023-11-25-12/+12
|
* Lint repo with new ruff rulesGravatar Chris Lovering2023-11-13-3/+3
|
* Format code with new ruff rulesGravatar Chris Lovering2023-11-06-5/+11
|
* Merge branch 'main' into snakes-cleanupGravatar wookie1842023-08-23-3/+3
|\
| * Bump ruff from 0.0.272 to 0.0.280 (#1333)Gravatar dependabot[bot]2023-08-10-5/+5
| | | | | | | | | | | | | | Co-authored-by: wookie184 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Lovering <[email protected]> Co-authored-by: ChrisJL <[email protected]>
* | Type hint pagination as allowing float timeoutGravatar wookie1842023-07-08-2/+2
| |
* | Fix and simplify 'disambiguate' utilityGravatar wookie1842023-07-08-36/+15
|/
* Fix type hint (#1314)Gravatar Ritik Ranjan2023-07-06-4/+4
|
* Bump ruff from 0.0.265 to 0.0.267 (#1276)Gravatar dependabot[bot]2023-05-15-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Bump ruff from 0.0.265 to 0.0.267 Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.265 to 0.0.267. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.265...v0.0.267) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Fix linting errors from new ruff rules --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Lovering <[email protected]>
* Move unshared contants inside modulesGravatar Chris Lovering2023-05-09-1/+2
|
* Apply fixes for ruff lintingGravatar Chris Lovering2023-05-09-87/+74
| | | | | Co-authored-by: wookie184 <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]>
* use the new code jam variable (#1267)Gravatar Amrou Bellalouna2023-05-06-1/+1
|
* replace a thread with its parent if presentGravatar shtlrs2023-03-10-7/+6
|
* whitelist a thread along with its parentGravatar shtlrs2023-03-10-0/+5
|
* Remove unused utils fileGravatar Janine vN2022-11-28-47/+0
| | | | These utils were only used in the AoC cog.
* Use extension utils from bot-coreGravatar Chris Lovering2022-09-21-45/+0
|
* Remove reference to no longer used EmptyEmbed varGravatar Chris Lovering2022-09-21-2/+1
|
* Merge branch 'main' into fix-whitelist-inheritanceGravatar ChrisJL2022-09-18-5/+1
|\
| * Fix typehintGravatar Izan2022-09-06-5/+1
| |
* | Merge branch 'main' into fix-whitelist-inheritanceGravatar ChrisJL2022-09-18-4/+85
|\|
| * Help command fix, normalize suggestions for unknown commands (#1064)Gravatar Rohan Reddy Alleti2022-08-18-0/+11
| | | | | | Co-authored-by: Xithrius <[email protected]>
| * Add error handling to get_discord_messageGravatar AbooMinister252022-08-09-1/+5
| |
| * Refactored get_discord_message to not unnecessarily log, and cleaned up ↵Gravatar AbooMinister252022-08-08-6/+2
| | | | | | | | uwu_command
| * Refactored methods _get_discord_message, _get_text_and_embed, and ↵Gravatar AbooMinister252022-08-08-1/+71
| | | | | | | | _convert_embed into bot/utils/messages.py
| * Allow `.src` in dev-contrib and community-meta (#1033)Gravatar TizzySaurus2022-02-20-3/+3
| |
* | Remove unnecessary hasattr checkGravatar wookie1842022-09-17-1/+1
| |
* | Split comment over lines evenlyGravatar wookie1842022-09-17-2/+2
| |
* | Apply suggestions from code reviewGravatar arl2022-07-09-1/+1
| |
* | minor: remove print debugging statementGravatar onerandomusername2022-01-12-1/+0
| |
* | fix: subcommands inherit their parent's whitelistGravatar onerandomusername2022-01-12-6/+22
|/ | | | | solves issue with adding decorator to the parent which wouldn't apply to the children
* Merge branch 'main' into dm-checkGravatar ChrisJL2022-01-01-10/+54
|\
| * Raise error when bot can't modify the given role in member helper utilGravatar Chris Lovering2021-12-29-1/+1
| |
| * Add member util functionsGravatar Chris2021-12-28-0/+47
| | | | | | | | This adds some useful utils, get_or_fetch and handle role change. These utils handle errors themselves, so can simplify implementations within the commands.
| * feat: implement moving commandsGravatar onerandomusername2021-12-03-0/+7
| | | | | | | | add exceptions and handler for commands that move locations
| * Remove unnecessary edits during paginationGravatar aru2021-11-20-10/+0
| | | | | | | | pick 3cd4c92b1e24c8cfdae8c5c68c19607c62cc01ed from python-discord/bot remove additional unnecessary edit
* | Add Better Support For Whitelisting DM CommandsGravatar Hassan Abouelela2021-11-21-10/+17
|/ | | | | | | | | Adds a toggle to the whitelist override, to allow explicit enabling of a command in DMs, and sets the default to False. Removes redundant `guild_only` decorators. Signed-off-by: Hassan Abouelela <[email protected]>
* Isort: give the codebase a sortGravatar Matteo Bertucci2021-10-22-10/+2
|
* Update rogue paths to new pathsGravatar Janine vN2021-09-05-3/+3
|
* Removed None return annotation for any __init__Gravatar Xithrius2021-09-01-2/+2
|
* Union item with None to Optional with item.Gravatar Xithrius2021-09-01-4/+4
|
* Fix type annotationsGravatar decorator-factory2021-08-31-29/+35
|
* Merge branch 'main' into pr/wikipediaissueGravatar Xithrius2021-08-23-3/+3
|\
| * Modify code to comply with new linter error N818Gravatar wookie1842021-08-06-3/+3
| |
* | Adjust spacing in the Wikipedia CogGravatar D0rs4n2021-08-20-1/+1
| | | | | | Co-authored-by: Bluenix <[email protected]>
* | Improve code consistency and spacing in the Wikipedia CogGravatar D0rs4n2021-08-17-1/+1
| |
* | Improve code consitency in Wikipedia Cog,Exceptions, and Error handlerGravatar D0rs4n2021-08-08-3/+6
| |
* | Refactor wiki_request, add External API related error,-handlerGravatar D0rs4n2021-08-02-0/+10
|/ | | | | - Refactor wiki_request in the Wikipedia Cog, remove unnecessary else statements. - Add ExternalAPIError, and a handler for this Exception into error_handler
* Allow commands in code jam team channelsGravatar wookie1842021-07-06-0/+5
|