aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | | | added a cool down per channel to the quiz commandGravatar RohanJnr2019-10-19-2/+6
| | | | | |
| * | | | | Made some language corrections in the json file and also made seperate ↵Gravatar RohanJnr2019-10-18-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | functions for the start and end quiz. Added another check to check if the game is still running before sending the answer.
| * | | | | fixed bugs such as incorrect time to send the category embed, game will no ↵Gravatar RohanJnr2019-10-17-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | longer run again if stopped n stuff.
| * | | | | Updated the code as per the suggestions and they are the following:Gravatar RohanJnr2019-10-13-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
| * | | | | fixed lint errorsGravatar RohanJnr2019-10-07-1/+1
| | | | | |
| * | | | | added function annotations to new commandGravatar RohanJnr2019-10-07-1/+1
| | | | | |
| * | | | | Corrected a few typos in the json file and also the following refinements ↵Gravatar RohanJnr2019-10-07-26/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for the quiz game: New scoreboard for every game. Store overall score board which refreshs when bot restarts.
* | | | | | Use new bot meta methods for set commands.Gravatar scragly2019-12-06-195/+47
| |_|_|/ / |/| | | |
* | | | | Unlock AoC role to make announcements actually ping the usersGravatar Sebastiaan Zeeff2019-12-04-7/+34
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'master' into exclude-draft-prsGravatar Mark2019-12-03-45/+164
|\ \ \ \
| * | | | Misc Bug FixesGravatar S. Co12019-12-03-2/+2
| | | | | | | | | | | | | | | | | | | | * Fix typo in easter riddle type hint * Fix incorrect `PIL.Image` type hint (vs. `PIL.Image.Image`)
| * | | | Fix AOC countdown logic (#317)Gravatar S. Co12019-12-02-3/+21
| |\ \ \ \ | | | | | | | | | | | | Fix AOC countdown logic
| | * | | | Fix Christmas season loading bugGravatar sco12019-12-02-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | Fix AOC countdown logicGravatar S. Co12019-11-30-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Add envelope reaction if AoC join DM sends successfullyGravatar kwzrd2019-12-02-0/+2
| | | | | |
| * | | | | Delete whitespacesGravatar Matteo Bertucci2019-12-02-1/+1
| | | | | |
| * | | | | Cancel season related tasks on cog unloadGravatar Matteo Bertucci2019-12-02-0/+5
| | | | | |
| * | | | | Merge branch 'master' into monster_bioGravatar S. Co12019-12-01-1/+1
| |\ \ \ \ \
| | * | | | | fix line length in command `.aoc join`Gravatar decorator-factory2019-12-01-1/+1
| | | | | | |
| | * | | | | Fix cmd annotationGravatar decorator-factory2019-12-01-1/+1
| | |/ / / / | | | | | | | | | | | | Fix the `brief` argument for `.aoc join` to make its behaviour more obvious.
| * | | | | Merge branch 'master' into monster_bioGravatar S. Co12019-11-30-10/+15
| |\| | | | | | | | | | | | | | | | Relock
| | * | | | Update icon path for 2019 festive seasonGravatar kwzrd2019-11-29-1/+1
| | | | | |
| | * | | | Adding the runner icon to the rotation.Gravatar Leon Sandøy2019-11-28-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/branding/pull/37
| | * | | | Default seasons to not send announcementsGravatar S. Co12019-11-25-4/+5
| | | |/ / | | |/| |
| | * | | Add the new blinky server guild iconGravatar Deniz2019-11-25-0/+1
| | | | |
| | * | | Change off-season logo size to 512Gravatar kwzrd2019-11-02-6/+6
| | | | |
| | * | | Add two new icons to icon constantGravatar kwzrd2019-11-02-0/+2
| | | | |
| | * | | Hotfix end date of HacktoberGravatar Sebastiaan Zeeff2019-10-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Refactor random generator to use a local instance rather than systemGravatar S. Co12019-11-30-11/+15
| | | | |
| * | | | Readd cog init & rename *.py fileGravatar S. Co12019-10-24-0/+3
| | | | |
| * | | | Merge branch 'master' into monster_bioGravatar quizzicaltrains2019-10-19-1/+1
| |\| | |
| | * | | Hacktober issue finder fix - divide count by 100 (#301)Gravatar scragly2019-10-20-1/+1
| | |\ \ \ | | | | | | | | | | | | Hacktober issue finder fix - divide count by 100
| | | * \ \ Merge remote-tracking branch 'origin/hacktober-issue-finder' into ↵Gravatar vivax37942019-10-12-4/+382
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | hacktober-issue-finder
| | | * | | | Fixed forgetting to divide by 100.Gravatar vivax37942019-10-12-1/+1
| | | | | | |
| * | | | | | Merge branch 'monster_bio' of https://github.com/quizzicaltrains/seasonalbot ↵Gravatar quizzicaltrains2019-10-19-28/+61
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into monster_bio
| | * | | | | | Merge branch 'master' into monster_bioGravatar quizzicaltrains2019-10-18-28/+61
| | |\| | | | |
| | | * | | | | Syntax cleanup, remove unnecessary emoji dictGravatar S. Co12019-10-14-28/+27
| | | | | | | |
| | | * | | | | Merge branch 'master' into masterGravatar RohanRadia2019-10-14-7/+268
| | | |\ \ \ \ \
| | | | * \ \ \ \ Merge branch 'master' into limit-command-channelsGravatar Leon Sandøy2019-10-14-0/+480
| | | | |\ \ \ \ \ | | | | | | |/ / / | | | | | |/| | |
| | | | * | | | | allow all AoC commands in whitelisted channelsGravatar Numerlor2019-10-12-0/+8
| | | | | | | | |
| | | | * | | | | override global whitelist on all hacktober subcommandsGravatar Numerlor2019-10-04-0/+2
| | | | | | | | |
| | | | * | | | | limit Advent Of Code commands to global whitelist and the AoC channelGravatar Numerlor2019-10-03-2/+4
| | | | | | | | |
| | | | * | | | | limit issue command to global whitelist and seasonalbot_chatGravatar Numerlor2019-10-03-2/+3
| | | | | | | | |
| | | * | | | | | Made the icon_URL variable conform to PEP8Gravatar RohanRadia2019-10-14-6/+6
| | | | | | | | |
| | | * | | | | | Remove str() in f-stringGravatar RohanRadia2019-10-14-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Kieran Siek <[email protected]>
| | | * | | | | | Remove str() within f-stringGravatar RohanRadia2019-10-14-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Kieran Siek <[email protected]>
| | | * | | | | | Caps fixGravatar RohanRadia2019-10-14-1/+1
| | | | | | | | |
| | | * | | | | | Update bot/seasons/evergreen/issues.pyGravatar RohanRadia2019-10-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Kieran Siek <[email protected]>
| | | * | | | | | Fixed emoji error in embedGravatar RohanRadia2019-10-09-10/+13
| | | | | | | | |
| | | * | | | | | Condensed importsGravatar RohanRadia2019-10-07-2/+1
| | | | | | | | |