| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
functions for the start and end quiz. Added another check to check if the game is still running before sending the answer.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
longer run again if stopped n stuff.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Corrected all typos.
- the quiz command is now a command group to allocate the leaderboard command(a command which shows the leaderboard for the current bot session).
- Few other refinements with language and stuff.
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
for the quiz game:
New scoreboard for every game.
Store overall score board which refreshs when bot restarts.
|
| | |_|_|/ /
|/| | | | |
|
| | |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The Advent of Code cog has a subscription system that allows members
to subscribe to a daily notification indicating the puzzle for that
day has become available. However, we introduces a more stringent
role mentionability policy that meant that the mentions did not
actually ping the members subscribed.
To solve this, I've made sure that the bot unlocks the role before
making the announcement using the `unlock_role` context manager. This
also means the role is automatically unlocked after the message is
sent.
In addition, I noticed that Seasonalbot was consistently announcing
the puzzle about 0.5 seconds early. I've correct this by adding a
second to the sleep delay. In addition, the bot now verifies that the
puzzle is available using a small HEAD request. While this does send
a request to the AoC server, it prevents multiple users from sending
unnecessary requests by following our link before the puzzle is
actually available.
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
* Fix typo in easter riddle type hint
* Fix incorrect `PIL.Image` type hint (vs. `PIL.Image.Image`)
|
| | |\ \ \ \
| | | | | |
| | | | | | |
Fix AOC countdown logic
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The `SeasonBase.is_between_dates()` method assumes that the season's start and end dates are in the same year, which works for every season except for Christmas, since its end date is New Year's Day.
To fix this, the christmas.end() method has been overloaded to return the next year instead of the current year.
This does not affect checks made on 1 January of the next year, as the season's start date will guard against this.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The current time delta until the next AOC event assumes that the next event is next year's. While this is was a safe assumption when written, since the command would not be available until the season is loaded on December 1st, it provides an incorrect answer if the season is loaded prior. The logic has been adjusted to return the closest December 1st that is not in the past.
The feedback string has also been adjusted to give hours remaining if we're less than a day away from the event starting.
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | |\ \ \ \ \ |
|
| | | | | | | | |
|
| | | |/ / / /
| | | | | |
| | | | | | |
Fix the `brief` argument for `.aoc join` to make its behaviour more obvious.
|
| | |\| | | |
| | | | | |
| | | | | | |
Relock
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
https://github.com/python-discord/branding/pull/37
|
| | | | |/ /
| | |/| | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The command is mostly used to calculate the time left in the DO's Hacktoberfest event we are participating in. However, the current end datetime was specified as a day before the actual end of the event. This hotfix remedies that for the end-calculation only.
This code should get a proper fix to rework the entire logic to use the correct start and end datetimes for DO's event.
|
| | | | | | |
|
| | | | | | |
|
| | |\| | | |
|
| | | |\ \ \
| | | | | |
| | | | | | |
Hacktober issue finder fix - divide count by 100
|
| | | | |\ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
hacktober-issue-finder
|
| | | | | | | | |
|
| | |\ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
into monster_bio
|
| | | |\| | | | | |
|
| | | | | | | | | |
|
| | | | |\ \ \ \ \ |
|
| | | | | |\ \ \ \ \
| | | | | | |/ / /
| | | | | |/| | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Co-Authored-By: Kieran Siek <[email protected]>
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Co-Authored-By: Kieran Siek <[email protected]>
|
| | | | | | | | | | |
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Co-Authored-By: Kieran Siek <[email protected]>
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|