aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/internal_eval/_helpers.py (follow)
Commit message (Collapse)AuthorAgeLines
* Move internal eval and rename utils to coreGravatar Janine vN2021-09-05-248/+0
| | | | | | | | | Part of this restructure involves splitting out the massive evergreen folder into a `fun` folder and then a `utilities` folder. To help with that we've rename the `util` folder to `core`. The core functions to run the bot have been moved into this folder. `.source`, `.ping`, and `.int e` have been moved into this folder.
* Removed None return annotation for any __init__Gravatar Xithrius2021-09-01-3/+3
|
* Fix type annotationsGravatar decorator-factory2021-08-31-10/+9
|
* Add constants for common string filenamesGravatar Janine vN2021-04-12-6/+8
| | | | | | Added a constant for the same filenames used in several locations. Because the now-a-constant string is used in several locations this will allow for it to be updated more easily down the line.
* Correct logger nameGravatar Janine vN2021-04-11-1/+1
| | | | | 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-0/+4
| | | | | | | 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.
* Realigned to SirLancebot StructureGravatar janine9vn2021-04-09-0/+243
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.