aboutsummaryrefslogtreecommitdiffstats
path: root/bot (follow)
Commit message (Collapse)AuthorAgeLines
* Remove check for `exit` to reset contextGravatar Janine vN2021-04-12-5/+0
| | | | | | | | This commit removes the `exit` check if someone were to use this: `.int e exit` to clear the context. The check would prevent `.int e exit()` from restarting the bot container. With the `.int reset` and `.int exit` ability to clear the context the check for `exit` to clear the context isn't necessary.
* 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.
* Ensure output will be robust for discord markdownGravatar Janine vN2021-04-11-1/+1
| | | | | | Added in an extra `\n` at the end of the output. Sometimes discord won't properly format the codeblock in the triple ` is not on a newline. This changes ensures that it should.
* Change command help formatGravatar Janine vN2021-04-11-1/+2
| | | | | | | `.int` with nothing else now uses the `invoke_help_command()` utility that formats the help command much more nicely than the default version
* 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.
* Remove topic that doesn't make sense in discordGravatar onerandomusername2021-04-08-1/+0
| | | Removed the `Name one thing you like about a person to your right.` topic as it doesn't make sense in discord
* fix: use api fetch not cache getGravatar vcokltfre2021-04-05-1/+1
|
* fix: use get_user in 8bitify to avoid events issuesGravatar vcokltfre2021-04-05-1/+2
|
* Merge branch 'main' into Handle-DMChannelsGravatar Joe Banks2021-04-03-40/+154
|\
| * Merge branch 'main' into github-repo-commandGravatar Joe Banks2021-03-31-7/+44
| |\
| | * Add missing commas to april_fools_vids.jsonGravatar Matteo Bertucci2021-03-30-3/+3
| | | | | | | | | #639 left the json file in a broken state, not letting the bot start.
| | * Merge branch 'main' into patch-1Gravatar Neil Shah2021-03-30-1/+24
| | |\
| | | * Add more game dev topicsGravatar Boris Muratov2021-03-29-0/+4
| | | |
| | | * Added more topics.Gravatar Xithrius2021-03-28-1/+20
| | | |
| | * | Added 3 More Elements To The JsonGravatar Neil Shah2021-03-26-0/+12
| | |/
| | * Merge branch 'main' into remove-broken-linkGravatar Matteo Bertucci2021-03-25-2/+8
| | |\
| | | * Replace list comp with a set update + sequenceGravatar Chris2021-03-21-1/+1
| | | |
| | | * Only output override channels & bot commands channel on whitelist errorGravatar Chris2021-03-20-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this would output all channels, and could result in an error. This change ensures only the main bot channel & and any overridden channels are shown in the embed. We do this before the categories block as the categories kwarg itself is an override, so we want to include those in any output.
| | * | Remove broken link from the April fool collection Gravatar Matteo Bertucci2021-03-24-4/+0
| | |/ | | | | | | Its’a braken
| * | Make repository accept either user/reponame or user reponameGravatar ToxicKidz2021-03-26-3/+8
| | |
| * | Make requested changesGravatar ToxicKidz2021-03-25-8/+9
| | |
| * | Merge branch 'github-repo-command' of ↵Gravatar ToxicKidz2021-03-25-1/+1
| |\ \ | | | | | | | | | | | | https://github.com/ToxicKidz/sir-lancebot into github-repo-command
| | * | Info -> informationGravatar ToxicKidz2021-03-24-1/+1
| | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| * | | Quote reponame and usernameGravatar ToxicKidz2021-03-25-2/+13
| |/ /
| * | Update docstrings because user and repo are now mandatory argumentsGravatar ToxicKidz2021-03-24-10/+2
| | |
| * | Add the embed kwarg to ctx.sendGravatar ToxicKidz2021-03-21-1/+1
| | |
| * | Make last commit not a timestamp to improve readabilityGravatar ToxicKidz2021-03-20-3/+3
| | |
| * | ChangeGravatar ToxicKidz2021-03-20-1/+1
| | |
| * | Fix importsGravatar ToxicKidz2021-03-20-1/+1
| | |
| * | Fix trailing whitespaceGravatar ToxicKidz2021-03-20-1/+1
| | |
| * | Merge branch 'github-repo-command' of ↵Gravatar ToxicKidz2021-03-20-3/+4
| |\ \ | | | | | | | | | | | | https://github.com/ToxicKidz/sir-lancebot into github-repo-command
| | * | Make a new line for `created_at`Gravatar ToxicKidz2021-03-20-3/+4
| | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| * | | Merge branch 'github-repo-command' of ↵Gravatar ToxicKidz2021-03-20-1/+1
| |\| | | | | | | | | | | | | | https://github.com/ToxicKidz/sir-lancebot into github-repo-command
| | * | Update bot/exts/evergreen/githubinfo.pyGravatar ToxicKidz2021-03-20-1/+1
| | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| * | | Follow style guildines and use better coloursGravatar ToxicKidz2021-03-20-21/+27
| |/ /
| * | Forgot a comma for the tupleGravatar ToxicKidz2021-03-19-1/+1
| | |
| * | Make git alias for the group insteadGravatar ToxicKidz2021-03-19-2/+2
| | |
| * | Make better aliases and follow style guidelinesGravatar ToxicKidz2021-03-19-18/+23
| | |
| * | Make flake8 happyGravatar ToxicKidz2021-03-19-3/+3
| | |
| * | Missed a \nGravatar ToxicKidz2021-03-19-1/+1
| | |