aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2021-11-29Use Discord timestamps for aoc next day messages countdownsGravatar Chris Lovering-4/+3
2021-11-29Use a Discord timestamp to show countdownGravatar Chris Lovering-6/+2
This gives the user the ability to hover the timestamp with their mouse to get an exact date and time.
2021-11-29Swap conditional in aoc countGravatar Chris Lovering-21/+20
This is so that there is less code within the if block, making it easier to parse the whole command by eye.
2021-11-22Fix a grammatical mistake in the description of the `.spookify` commandGravatar DMFriends-1/+1
2021-11-21Add check to ensure the day-and-star data existsGravatar D0rs4n-3/+8
2021-11-20Disable File Logging By DefaultGravatar Hassan Abouelela-4/+2
Place logging to file behind an environment variable. Signed-off-by: Hassan Abouelela <[email protected]>
2021-11-19Update Caching logic in AoC helpersGravatar D0rs4n-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]>
2021-11-18Introduce command changes in the AoC CogGravatar D0rs4n-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.
2021-11-14Resources: add copyright notice to ryanzec_colours.jsonGravatar Matteo Bertucci-1/+1
2021-11-13fix: handle bare command embed titleGravatar bradtimmis-1/+1
2021-11-13fix: update type hint, color to colour, embed wordingGravatar bradtimmis-10/+10
2021-11-13fix: remove unnecessary return in main commandGravatar bradtimmis-3/+0
2021-11-12fix: remove equal sign from hex length checkGravatar bradtimmis-2/+2
2021-11-12fix: bare return instead of explicit NoneGravatar brad90four-1/+1
Co-authored-by: Xithrius <[email protected]>
2021-11-12fix: replace Union with Optional type hintGravatar brad90four-1/+1
Co-authored-by: Xithrius <[email protected]>
2021-11-12fix: check length of hex before stripGravatar bradtimmis-1/+3
2021-11-12Move Sentry Into InitGravatar Hassan Abouelela-22/+19
Moves the sentry setup to be one of the very first things run during startup, so we are able to catch more errors, such as ones that might occur while setting up logs. Signed-off-by: Hassan Abouelela <[email protected]>
2021-11-12Disable File Logs In ProductionGravatar Hassan Abouelela-10/+13
The most recent changes to our log setup had the loggers writing to a read-only location in prod. This would cause an error during startup. To get around this while keeping the change, I moved it to only be used if debug is True. Signed-off-by: Hassan Abouelela <[email protected]>
2021-11-11update: remove redundancy in dosctringGravatar bradtimmis-1/+1
2021-11-11fix: remove alpha values in embed for hexGravatar bradtimmis-2/+2
2021-11-11update: remove redundancy in docstringGravatar brad90four-1/+1
Co-authored-by: Hedy Li <[email protected]>
2021-11-11fix: change color to Colour in commentGravatar bradtimmis-1/+1
2021-11-11fix: remove async call for match_colour_nameGravatar bradtimmis-8/+11
2021-11-11fix: change color to colour in no match found resultGravatar brad90four-1/+1
Co-authored-by: Hedy Li <[email protected]>
2021-11-10cleanup: change main command docstring to be more clearGravatar bradtimmis-1/+5
2021-11-10cleanup: finalize reviews requested changesGravatar bradtimmis-15/+12
-Change _ to `digit` -Remove redundant "Command" from docstrings. Changed to "Create embed from ..." -Change hex command custom embed to `BadArgument` for consistency
2021-11-10test: correct embed descriptionsGravatar brad90four-3/+3
2021-11-10test: return after default random invocationGravatar brad90four-0/+1
2021-11-10test: UI/UX updates, not tested yetGravatar brad90four-9/+22
2021-11-10fix: change kwarg to color_input instead of extraGravatar bradtimmis-2/+2
2021-11-10fix: handle user hex in embedGravatar bradtimmis-0/+2
2021-11-09fix: replace 'random' in embed with color modeGravatar bradtimmis-1/+1
2021-11-09chore: remove 0 from range and change to "Gravatar bradtimmis-5/+5
2021-11-09chore: re-arrange command invocation with try/exceptGravatar bradtimmis-6/+8
2021-11-09chore: pull hex match out of try/except blockGravatar bradtimmis-2/+1
2021-11-09bug: handle multi word name entries and full inputGravatar bradtimmis-2/+4
2021-11-09fix: add import, handle no name match in embedGravatar bradtimmis-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.
2021-11-09fix: handle alpha values in hex codeGravatar brad90four-0/+6
Co-authored-by: Sn4u <[email protected]>
2021-11-09remove unnecessary volumesGravatar Numerlor-3/+0
2021-11-09use pseudo-tty for sir-lancebot serviceGravatar Numerlor-0/+1
This allows the coloredlogs module to automatically detect colour support when running in docker
2021-11-09fix: type hinting _rgb_to_cmykGravatar brad90four-1/+1
2021-11-07Fix line after function docstringGravatar Shom770-1/+0
2021-11-07Handle `.wtf` command without query (#939)Gravatar brad90four-1/+13
Co-authored-by: Hedy Li <[email protected]> Co-authored-by: Xithrius <[email protected]>
2021-11-06Change language to language.lower()Gravatar Shom770-2/+4
2021-11-06lowering challenges for compatibility with uppercase languagesGravatar Shom770-1/+1
2021-11-05Limit user reactions on embed paginationGravatar NipaDev-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]>
2021-11-05Add option to get specific amount of realpython articlesGravatar NipaDev-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]>
2021-11-03rename to colourGravatar bradtimmis-0/+0
2021-11-03fix: reduce 'from' importsGravatar bradtimmis-13/+12
2021-11-03fix: have description in-lineGravatar bradtimmis-2/+1