| Commit message (Collapse) | Author | Lines |
|
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.
|
|
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.
|
|
|
|
This gives the user the ability to hover the timestamp with their mouse to get an exact date and time.
|
|
This is so that there is less code within the if block, making it easier to parse the whole command by eye.
|
|
|
|
|
|
Place logging to file behind an environment variable.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
- 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]>
|
|
- 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.
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Xithrius <[email protected]>
|
|
Co-authored-by: Xithrius <[email protected]>
|
|
|
|
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]>
|
|
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]>
|
|
|
|
|
|
Co-authored-by: Hedy Li <[email protected]>
|
|
|
|
|
|
Co-authored-by: Hedy Li <[email protected]>
|
|
|
|
-Change _ to `digit`
-Remove redundant "Command" from docstrings. Changed to "Create embed
from ..."
-Change hex command custom embed to `BadArgument` for consistency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-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.
|
|
Co-authored-by: Sn4u <[email protected]>
|
|
|
|
This allows the coloredlogs module to
automatically detect colour support when running in docker
|
|
|
|
|
|
Co-authored-by: Hedy Li <[email protected]>
Co-authored-by: Xithrius <[email protected]>
|
|
|
|
|
|
* 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 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]>
|
|
|