diff options
author | 2021-04-09 13:41:45 -0400 | |
---|---|---|
committer | 2021-04-09 13:41:45 -0400 | |
commit | 80a9a40b3c27376657486cf183d4c0c7d4e9880f (patch) | |
tree | 80c19c063bdbf68946576e45c1a75bbcdb354c01 /bot/exts/internal_eval/helpers.py | |
parent | Add helpers for internal eval (diff) |
Realigned to SirLancebot Structure
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.
Diffstat (limited to 'bot/exts/internal_eval/helpers.py')
0 files changed, 0 insertions, 0 deletions