aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py (unfollow)
Commit message (Collapse)AuthorLines
2021-04-11Correct prefix usage in a doctstring Gravatar Janine vN-1/+1
Corrects the prefix for the a command in the docstring to use Lancebot's prefix. Co-authored-by: Matteo Bertucci <[email protected]>
2021-04-10Blind Fixes at LintingGravatar janine9vn-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.
2021-04-10Removed rogue variableGravatar janine9vn-6/+1
I'm better than this I swear. I can lint before I commit. Don't tell lemon.
2021-04-10Update codeblock regexGravatar janine9vn-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.
2021-04-10Change namesGravatar janine9vn-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.
2021-04-09Realigned to SirLancebot StructureGravatar janine9vn-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.