aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2021-12-13chore(deps): bump lxml from 4.6.4 to 4.6.5Gravatar dependabot[bot]-63/+64
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.4 to 4.6.5. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.4...lxml-4.6.5) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
2021-12-10added key checkGravatar evgriff-1/+1
2021-12-10Added the user's score to Candy Command according to #947Gravatar evgriff-0/+12
2021-12-10Remove myself from the codeownersGravatar Matteo Bertucci-7/+3
2021-12-05Reflect new message converter behaviour in bm help messageGravatar Chris Lovering-1/+1
Since w epatched the message converter to work as intended, the help message given to a user when failing to resolve a message reference to a message object has been updated.
2021-12-05Patch d.py's message converters to infer channelID from the given contextGravatar Chris Lovering-0/+29
Discord.py's message converter is supposed to infer channelID based on ctx.channel if only a messageID is given. A refactor (linked below) a few weeks before d.py's archival broke this, so that if only a messageID is given to the converter, it will only find that message if it's in the bot's cache.
2021-12-04Add more information to `.aoc lb` error embedGravatar Janine vN-0/+3
Advent of Code Leaderboard BadArgument error embed now mentions to join the leaderboard and to wait up to 30 minutes if you've joined recently.
2021-12-04Adjust variable name for clarity and add spaceGravatar Janine vN-3/+3
2021-12-03Adjust `.aoc lb` to use linked account in cacheGravatar Janine vN-1/+5
If the user has not supplied a name to use for the leaderboard, then code will check if they have an account linked. If they do, it will use the linked account in the leaderboard to show placement.
2021-12-03Make aoc_name a keyword arguemnt to accept spacesGravatar Janine vN-1/+1
Makes `aoc_name` in the link command a keyword only argument. This allows users to link accounts with spaces in the name without having to use quotes.
2021-12-03Adjust wording on log statements to present tenseGravatar Janine vN-3/+3
2021-12-03Add unlink AoC commandGravatar Janine vN-0/+21
Adds the ability for the user to unlink their advent of code name. It will delete the entry in the cache if it exists.
2021-12-03Remove unneeded check and add commentsGravatar Janine vN-15/+2
Removes the unneeded check for if the cache is empty. Also adds a seconds comment about the format of the contents of the Redis cache.
2021-12-03chore: update lovefest docstring to reflect deprecationGravatar onerandomusername-5/+2
2021-12-03chore: remove subcommands entirelyGravatar onerandomusername-13/+1
2021-12-03yank lovefest role management commandsGravatar onerandomusername-20/+11
2021-12-03feat: implement moving commandsGravatar onerandomusername-1/+19
add exceptions and handler for commands that move locations
2021-12-02Note why .aoc lb strips quotes from namesGravatar Ben Soyka-0/+1
2021-12-02Note that only one layer of quotes is stripped in .aoc lbGravatar Ben Soyka-1/+3
2021-12-01Shorten parameter name for .aoc lbGravatar Ben Soyka-13/+8
2021-12-01Strip quotes from start/end of the username for .aoc lbGravatar Ben Soyka-0/+4
2021-12-01Make self_placement_name keyword-only in .aoc lbGravatar Ben Soyka-0/+1
2021-12-01Add `.aoc link` commandGravatar Janine vN-0/+69
This new command will allow people to associate their Discord ID with their Advent of Code name. This Redis Cache idea was taken from the hacktoberfest stats command, which allows people to associate their github username to then pull the correct stats. This does not check if the name exists on the leaderboard and that is intentional. Due to the cooldown on the leaderboard I don't want to rely on that before someone can link their account. Additionally, someone may change their display name on the Advent of Code side and I don't think validation of it existing on the leaderboard gets us anything. The usefulness of this function will not be apparent in this cog, but it is necessary for something fun I'd like to do.
2021-12-01fix: hanukkah command respects month boundariesGravatar aru-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.
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-29Revert change to if statement checking if staff in `.aoc join`Gravatar Izan-1/+1
2021-11-29Change `MODERATION_ROLES` and `STAFF_ROLES` constants to be a setGravatar Izan-2/+2
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-20Remove unnecessary edits during paginationGravatar aru-10/+0
pick 3cd4c92b1e24c8cfdae8c5c68c19607c62cc01ed from python-discord/bot remove additional unnecessary edit
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