aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | Update docstring for resetGravatar Janine vN2021-04-11-1/+1
| | | | | | | | | | | | | | | | | | | | Updated the docstring for `reset` to provide accurate information as to what the command does.
| | * | Remove unused codeblock regexGravatar Janine vN2021-04-11-2/+0
| | | | | | | | | | | | | | | | | | | | With the regex sufficiently stolen from snekbox and confirmed to work, the original codeblock regex has been removed.
| | * | Correct logger nameGravatar Janine vN2021-04-11-2/+2
| | | | | | | | | | | | | | | | | | | | Changed the initialization of the logging to pull dynamically so it can actually log correctly.
| | * | Correct prefix usage in a doctstring Gravatar Janine vN2021-04-11-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Corrects the prefix for the a command in the docstring to use Lancebot's prefix. Co-authored-by: Matteo Bertucci <[email protected]>
| | * | Blind Fixes at LintingGravatar janine9vn2021-04-10-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both my pre-commit and flake8 runs are telling me everything is fine and it's all passed. Github actions is saying otherwise but isn't saying *where*. So here I am with useless linting commits.
| | * | Removed rogue variableGravatar janine9vn2021-04-10-6/+1
| | | | | | | | | | | | | | | | | | | | I'm better than this I swear. I can lint before I commit. Don't tell lemon.
| | * | Update codeblock regexGravatar janine9vn2021-04-10-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The snekbox implementation of the codeblock regex was incorporated. This now correctly parses the `code` and ``code`` markdown discord allows. You can also use multiple code blocks with text interrupting it and it will process the different code blocks as one continuous code block.
| | * | Change namesGravatar janine9vn2021-04-10-395/+0
| | | | | | | | | | | | | | | | | | | | | | | | These were missed in a previous commit. It's a simple name change from the original files to better align with Sir Lancebot.
| | * | Realigned to SirLancebot StructureGravatar janine9vn2021-04-09-0/+405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code for rattlesnakes's internal eval was aligned to Sir Lancebot's structure. It was mostly renaming rattlesnake to bot and changing how some of the imports were setup as. It also included changing the __init__.py to match the Sir Lancebot cog structure. Additionally, the whitelist check has been significantly simplified to only be a role check for the admin role. The rattlesnake implementation had a more robust `in_whitelist` decorator, so it may be worth investigating adding that in if we see fit. For now, it's a simple `with_role` decorator check. The name of the cog file itself was changed to include an underscore to sidestep what I think was a namespace collision that would prevent the setup function from properly running.
| | * | Add helpers for internal evalGravatar janine9vn2021-04-09-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Cutting over the rattlesnake helpers specifically for internal_eval. I am mirroring the rattlesnake structure as much as I can initially to ensure basic functionality before migrating functions to fit more within Sir Lancebot's file structure.
| | * | Cutover of rattlesnake to lancebotGravatar janine9vn2021-04-09-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an initial cutover of the rattlesnake internal eval to Sir Lancebot. This commit by itself will not work. This is a simple drop in of rattlesnake code so there is context as to what has changed and why.
| | | * Add non-underscore aliases for lazy people like me :)Gravatar Chris2021-04-30-1/+1
| | | |
| | | * Consistant use of double quotes and tuples in avatar_mod cogGravatar Chris2021-04-30-11/+10
| | | |
| | | * Rename pfp_modify cog and group to avatar_mod for clarityGravatar Chris2021-04-30-10/+10
| | | | | | | | | | | | | | | | Added in aliases for ease of use too.
| | | * Escape invalid filename chars before saving.Gravatar Chris2021-04-22-16/+24
| | | | | | | | | | | | | | | | | | | | This would cause an issue with the embed not embedding the image due to a filename mismatch. This has been implemented by escaping all invalid filename characters before saving the file.
| | | * Fix captitilization in docstringGravatar Chris2021-04-17-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: LXNN <[email protected]>
| | | * Silence matplotlib's loggerGravatar Chris2021-04-12-0/+1
| | | |
| | | * Revert pillow-simd changeGravatar Chris2021-04-12-16/+9
| | | |
| | | * Relock after mergingGravatar Chris2021-04-12-8/+47
| | | |
| | | * Merge branch 'main' into Enforce-image-processing-concurrencyGravatar Chris2021-04-12-139/+410
| | | |\
| | | * | Request the pfp as the right size from discordGravatar Chris2021-04-12-1/+1
| | | | |
| | | * | Change to pillow-simdGravatar Chris2021-04-12-106/+111
| | | | |
| | | * | Merge branch 'main' into Enforce-image-processing-concurrencyGravatar Chris2021-04-11-328/+381
| | | |\ \ | | | |/ / | | |/| |
| | | * | Ensure to await ctx.send() callsGravatar Chris2021-04-08-4/+4
| | | | |
| | | * | Refactor pfp cog to remove unnecessary params and callsGravatar ChrisJL2021-04-08-3/+3
| | | | | | | | | | | | | | | Co-authored-by: ToxicKidz <[email protected]>
| | | * | Fetch member before modifying their pfpGravatar Chris2021-04-05-14/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do this as the member cache may have an outdated version of their pfp, which can lead to errors if it's removed from the Discord CDN. Co-authored-by: vcokltfre <[email protected]>
| | | * | Don't close bot's http session when getting imageGravatar Chris2021-03-21-13/+11
| | | | |
| | | * | revert pip lock to origin/mainGravatar Chris2021-03-14-10/+10
| | | | |
| | | * | Imrpoves docstrings within the profile pic modification functionsGravatar Chris2021-03-14-7/+19
| | | | |
| | | * | Pull the function signature back onto one line for readibilityGravatar Chris2021-03-14-5/+1
| | | | |
| | | * | Remove unnecessary lambda in when getting closest colourGravatar Chris2021-03-14-1/+1
| | | | |
| | | * | Remove aiofiles depGravatar Chris2021-03-14-29/+16
| | | | |
| | | * | Merge remote-tracking branch 'origin/main' into ↵Gravatar Chris2021-03-14-100/+216
| | | |\ \ | | | | | | | | | | | | | | | | | | Enforce-image-processing-concurrency
| | | * | | Use new help command extGravatar Chris2021-03-13-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since sir-lancebot#625 was merged, we now have bot.utils.extensions.invoke_help_command which sends a nicely formatted help embed.
| | | * | | Use user reference passed via command Gravatar ChrisJL2021-03-13-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The command takes in user as argument but doesn't use it while converting the image into bytes. Co-authored-by: Shivansh-007 <[email protected]>
| | | * | | Fix filename for spooky effect avatarsGravatar Chris2021-03-11-1/+1
| | | | | |
| | | * | | Merge branches 'Enforce-image-processing-concurrency' and ↵Gravatar Chris2021-03-11-2/+2
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | 'Enforce-image-processing-concurrency' of github.com:python-discord/sir-lancebot into Enforce-image-processing-concurrency
| | | | * | | Update docstring to refer to groups rather than commandsGravatar ChrisJL2021-03-11-2/+2
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| | | * | | | Defer errors in pride image to error handlerGravatar Chris2021-03-11-4/+3
| | | |/ / /
| | | * | | Use a more specific filename for avatar modifiying commandsGravatar Chris2021-03-11-9/+39
| | | | | |
| | | * | | Remove double assignment of a variableGravatar Chris2021-03-10-1/+1
| | | | | |
| | | * | | Improve docstring and split line for readibilityGravatar Chris2021-03-10-2/+8
| | | | | |
| | | * | | Move colours to constantsGravatar Chris2021-03-10-6/+18
| | | | | |
| | | * | | Split up complex line.Gravatar Chris2021-03-06-1/+4
| | | | | |
| | | * | | Remove superfluous str cast.Gravatar Chris2021-03-06-1/+1
| | | | | |
| | | * | | Don't return discord.Messages.Gravatar Chris2021-03-06-3/+8
| | | | | |
| | | * | | Fix return type of in_executor. Its return type varies, based on the ↵Gravatar Chris2021-03-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Callable given.
| | | * | | Convert method to static as it doesn't use class attributes.Gravatar Chris2021-03-06-1/+1
| | | | | |
| | | * | | Improve readibility of code, and fix grammar issues.Gravatar Chris2021-03-06-19/+23
| | | | | |
| | | * | | Rename in_thread fuction for clarity.Gravatar Chris2021-03-05-5/+5
| | | | | |