aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
* Fix lint failures: adding docstrings, removing whitespaceGravatar Objectivitix2021-05-07-17/+11
|
* Add dynamic question formatters and its constantsGravatar Objectivitix2021-05-07-2/+162
|
* fix NameError, add some forgotten importsGravatar Objectivitix2021-05-07-1/+2
|
* Implement the math and science questions, added a dynamic_id checkerGravatar Objectivitix2021-05-07-59/+182
|
* chore: Add a 5 second cooldown per user to .catifyGravatar ToxicKidz2021-05-05-0/+1
|
* fix: remove () from list of safe filename charsGravatar vcokltfre2021-04-30-1/+1
|
* Merge branch 'main' into Enforce-image-processing-concurrencyGravatar ks1292021-04-30-27/+582
|\
| * Merge branch 'main' into fix-reddit-index-errorGravatar ChrisJL2021-04-23-2/+8
| |\
| | * Suppresses Links In CommandsGravatar Hassan Abouelela2021-04-23-2/+8
| | | | | | | | | | | | | | | | | | Suppresses links in certain commands that can echo back user input. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Fix spelling of a user facing message in reddit cogGravatar ChrisJL2021-04-23-1/+1
| | | | | | | | | Co-authored-by: Xithrius <[email protected]>
| * | Fix errors when a subreddit has <5 posts.Gravatar Chris2021-04-22-2/+2
| |/ | | | | | | | | | | If a subreddit has <2 posts, the posts[1] check would fail with an IndexError. If the subreddit had less that 5 posts, then the k=5 check would also error. These changes harden the command for these edge cases.
| * chore: use 'nickname' and 'display name' in the right places and use ↵Gravatar ToxicKidz2021-04-20-2/+5
| | | | | | | | allowed_mentions
| * fix: Use name.replace not text.replaceGravatar ToxicKidz2021-04-20-3/+3
| |
| * chore: lower the input to fine more catsGravatar ToxicKidz2021-04-20-3/+4
| |
| * chore: Fix UnboundLocalError and discord.ForbiddenErrors in the catify commandGravatar ToxicKidz2021-04-20-17/+21
| |
| * Add Catify command (#694)Gravatar Dillon Runke2021-04-20-0/+78
| | | | | | | | Co-authored-by: Joe Banks <[email protected]> Co-authored-by: hypergamer80 <[email protected]>
| * Merge branch 'main' into int-evalGravatar Matteo Bertucci2021-04-17-150/+347
| |\
| | * fix: display help for the correct command when an error occurs in timedGravatar vcokltfre2021-04-14-3/+11
| | |
| | * Merge branch 'main' into vcokltfre/feat/pingGravatar Xithrius2021-04-13-1/+4
| | |\
| | | * Linebreak to hopefully not run into linter issuesGravatar laundmo2021-04-13-1/+3
| | | | | | | | | | | | editing this from the web version because im at work and this fixes the issue linking being basically unusable
| | | * Update issue matching regex Gravatar laundmo2021-04-13-1/+2
| | | | | | | | | | | | | | | | fixes it being unable to get issue numbers larger than 9 limits it somewhat length-wise and character-wise to the actual github limits
| | * | chore: use discord terminologyGravatar vcokltfre2021-04-13-1/+1
| | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
| | * | chore: add ping_pong emojiGravatar vcokltfre2021-04-13-1/+1
| | | |
| | * | feat: add ping commandGravatar vcokltfre2021-04-13-0/+27
| | |/
| | * Merge branch 'main' into mainGravatar ChrisJL2021-04-12-147/+262
| | |\
| | | * Merge branch 'main' into fix/april-fools-video-categoriesGravatar ChrisJL2021-04-12-129/+298
| | | |\
| | | * | chore: remove unnecessary utility function and simplify codeGravatar vcokltfre2021-04-12-14/+4
| | | | |
| | | * | feat: rewrite portion of fool command to allow all videosGravatar vcokltfre2021-04-12-5/+5
| | | | |
| | * | | Merge branch 'main' into mainGravatar Sougata das2021-04-12-6/+98
| | |\ \ \
| | * | | | Update battleship.pyGravatar Sougata das2021-04-02-1/+1
| | | | | |
| * | | | | 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.
* | | | | 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]>