aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
* fix: hanukkah command respects month boundariesGravatar aru2021-12-01-48/+36
| | | | | | | | | | | | rewrote hanukkah to use datetime.strptime left a helper method and some variables in order to allow extending to use a cache in the future, rather than requesting the api every invoke that is out of scope of this commit and pull, since the command is currently broken. I've only kept the same functionality, without trying to rewrite the entire command.
* Use Discord timestamps for aoc next day messages countdownsGravatar Chris Lovering2021-11-29-4/+3
|
* Use a Discord timestamp to show countdownGravatar Chris Lovering2021-11-29-6/+2
| | | | This gives the user the ability to hover the timestamp with their mouse to get an exact date and time.
* Swap conditional in aoc countGravatar Chris Lovering2021-11-29-21/+20
| | | | This is so that there is less code within the if block, making it easier to parse the whole command by eye.
* Fix a grammatical mistake in the description of the `.spookify` commandGravatar DMFriends2021-11-22-1/+1
|
* Add check to ensure the day-and-star data existsGravatar D0rs4n2021-11-21-3/+8
|
* 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
| | |