aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | Update Caching logic in AoC helpersGravatar D0rs4n2021-11-19-6/+40
| | | | | | | | | | | | | | | | | | | | | - This commit adds a new set of leaderboard data to the cache so that it calculates the correct information if issued with either a `self_placement_name` or not. - It also introduces code consistency upgrades Co-Authored-By: Johannes Christ <[email protected]>
| * | Introduce command changes in the AoC CogGravatar D0rs4n2021-11-18-31/+66
| | | | | | | | | | | | | | | - The AoC day and star browser has been separated from the leaderboard command, from now on it's a separate command - The leaderboard command has a new `self_placement_name` option, that shows the personal stats for the specified profile name.
| * | Merge branch 'main' into color-677Gravatar Matteo Bertucci2021-11-14-38/+69
| |\ \
| | * \ Merge branch 'main' into challenge-fixGravatar Hassan Abouelela2021-11-10-55/+320
| | |\ \
| | | * | Handle `.wtf` command without query (#939)Gravatar brad90four2021-11-07-1/+13
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Hedy Li <[email protected]> Co-authored-by: Xithrius <[email protected]>
| | | * | Limit user reactions on embed paginationGravatar NipaDev2021-11-05-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Limit user reactions on embed pagination Limit user reactions to prevent non-author from removing message by adding user restriction to paginator. * Fixed the format of code to single line. Co-authored-by: ChrisJL <[email protected]>
| | | * | Add option to get specific amount of realpython articlesGravatar NipaDev2021-11-05-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a feature to choice in between 1-5 (inclusive) articles. If value not specified, the default, 5 will be used. Co-authored-by: ChrisJL <[email protected]>
| | | * | Candy Game: Ignore reactions to bot messages when adding candiesGravatar Hedy Li2021-10-29-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check whether a reaction is for a bot message when adding candies upon reactions. Previously you could use bot's reaction buttons which would trigger `on_reaction_add` and have a high chance of getting candies (or skulls). It can easily be abused to spam reactions, which apparently doesn't trigger an auto-mute like spamming messages do, AFAIK. In any case, I don't really feel good about reactions triggering candies. Despite this fix, the game *can* still be abused (but I won't tell you how). Though this occuring by accident is less likely than before. Either figure it out yourself or don't try to cheat :P This patch can be tested using the `.snake antidote` game when you react to the recipe buttons. Using `.help` works too but it produces a lot of noise in the logs. Tic tac toe may be helpful as well. Anyway, you could just react to bot messages yourself.
| | | * | Migrate to `og_blurple` (#924)Gravatar TizzySaurus2021-10-26-12/+12
| | | | |
| | * | | Fix line after function docstringGravatar Shom7702021-11-07-1/+0
| | | | |
| | * | | Change language to language.lower()Gravatar Shom7702021-11-06-2/+4
| | | | |
| | * | | lowering challenges for compatibility with uppercase languagesGravatar Shom7702021-11-06-1/+1
| | | | |
| | * | | removed repeating query is NoneGravatar Shom7702021-10-14-15/+16
| | | | |
| | * | | requested changes from TizzySaurus implementedGravatar Shom7702021-10-14-7/+6
| | | | |
| | * | | fixing errorsGravatar Shom7702021-10-13-3/+8
| | | | |
| * | | | fix: handle bare command embed titleGravatar bradtimmis2021-11-13-1/+1
| | | | |
| * | | | fix: update type hint, color to colour, embed wordingGravatar bradtimmis2021-11-13-10/+10
| | | | |
| * | | | fix: remove unnecessary return in main commandGravatar bradtimmis2021-11-13-3/+0
| | | | |
| * | | | fix: remove equal sign from hex length checkGravatar bradtimmis2021-11-12-2/+2
| | | | |
| * | | | fix: bare return instead of explicit NoneGravatar brad90four2021-11-12-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
| * | | | fix: replace Union with Optional type hintGravatar brad90four2021-11-12-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
| * | | | fix: check length of hex before stripGravatar bradtimmis2021-11-12-1/+3
| | | | |
| * | | | update: remove redundancy in dosctringGravatar bradtimmis2021-11-11-1/+1
| | | | |
| * | | | fix: remove alpha values in embed for hexGravatar bradtimmis2021-11-11-2/+2
| | | | |
| * | | | Merge branch 'color-677' of github.com:brad90four/sir-lancebot into color-677Gravatar bradtimmis2021-11-11-1/+1
| |\ \ \ \
| | * | | | update: remove redundancy in docstringGravatar brad90four2021-11-11-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: Hedy Li <[email protected]>
| * | | | | fix: change color to Colour in commentGravatar bradtimmis2021-11-11-1/+1
| |/ / / /
| * | | | fix: remove async call for match_colour_nameGravatar bradtimmis2021-11-11-8/+11
| | | | |
| * | | | cleanup: change main command docstring to be more clearGravatar bradtimmis2021-11-10-1/+5
| | | | |
| * | | | cleanup: finalize reviews requested changesGravatar bradtimmis2021-11-10-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Change _ to `digit` -Remove redundant "Command" from docstrings. Changed to "Create embed from ..." -Change hex command custom embed to `BadArgument` for consistency
| * | | | test: correct embed descriptionsGravatar brad90four2021-11-10-3/+3
| | | | |
| * | | | test: return after default random invocationGravatar brad90four2021-11-10-0/+1
| | | | |
| * | | | test: UI/UX updates, not tested yetGravatar brad90four2021-11-10-9/+22
| | | | |
| * | | | fix: change kwarg to color_input instead of extraGravatar bradtimmis2021-11-10-2/+2
| | | | |
| * | | | fix: handle user hex in embedGravatar bradtimmis2021-11-10-0/+2
| | | | |
| * | | | fix: replace 'random' in embed with color modeGravatar bradtimmis2021-11-09-1/+1
| | | | |
| * | | | chore: remove 0 from range and change to "Gravatar bradtimmis2021-11-09-5/+5
| | | | |
| * | | | chore: re-arrange command invocation with try/exceptGravatar bradtimmis2021-11-09-6/+8
| | | | |
| * | | | chore: pull hex match out of try/except blockGravatar bradtimmis2021-11-09-2/+1
| | | | |
| * | | | bug: handle multi word name entries and full inputGravatar bradtimmis2021-11-09-2/+4
| | | | |
| * | | | fix: add import, handle no name match in embedGravatar bradtimmis2021-11-09-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Added `import string` to use the `string.hexdigits` method to check hex codes. -Handled bug where no name match found would be repeated in the embed in the first line as well as the value for the Name field.
| * | | | fix: handle alpha values in hex codeGravatar brad90four2021-11-09-0/+6
| | | | | | | | | | | | | | | Co-authored-by: Sn4u <[email protected]>
| * | | | fix: type hinting _rgb_to_cmykGravatar brad90four2021-11-09-1/+1
| | | | |
| * | | | rename to colourGravatar bradtimmis2021-11-03-0/+0
| | | | |
| * | | | fix: reduce 'from' importsGravatar bradtimmis2021-11-03-13/+12
| | | | |
| * | | | fix: have description in-lineGravatar bradtimmis2021-11-03-2/+1
| | | | |
| * | | | fix: use and handle conversions with name valueGravatar bradtimmis2021-11-03-2/+5
| | | | |
| * | | | fix: return None if no name match is foundGravatar bradtimmis2021-11-03-3/+3
| | | | |
| * | | | Fix lint errors of eac9d3b4194004894d4f4e50862f184db695d402Gravatar CyberCitizen012021-11-01-3/+3
| | | | |
| * | | | Add source credit and Color.from_rgb method to get discord colorGravatar CyberCitizen012021-11-01-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/sir-lancebot/pull/842/files#r739619938 https://github.com/python-discord/sir-lancebot/pull/842/files#r739295253