aboutsummaryrefslogtreecommitdiffstats
path: root/bot (follow)
Commit message (Collapse)AuthorAgeLines
...
| | * | Removed footer , Unnecessary line. Edited a stringGravatar AG_14362019-12-09-3/+1
| | | |
| | * | Improved DM messageGravatar AG_14362019-12-08-7/+9
| | | | | | | | | | | | Simplified the DM , example in the original post
| | * | Reworked on the whole structure completely.Gravatar AG_14362019-12-08-35/+13
| | | | | | | | | | | | | | | | | | | | Removed error_embeds No more selecting last message if * or None is specified Redone how DM's Look like
| | * | Added better info, Added usage logging.Gravatar AG_14362019-12-07-1/+2
| | | |
| | * | renamed error completelyGravatar AG_14362019-12-05-2/+2
| | | |
| | * | Fixed typo of DMsGravatar AG_14362019-12-05-1/+1
| | | | | | | | | | | | Co-Authored-By: Matteo Bertucci <[email protected]>
| | * | Simple change in a if stringGravatar AG_14362019-12-05-1/+1
| | | | | | | | | | | | Co-Authored-By: Matteo Bertucci <[email protected]>
| | * | Renamed error namesGravatar AG_14362019-12-05-1/+1
| | | | | | | | | | | | Co-Authored-By: Matteo Bertucci <[email protected]>
| | * | Renamed error namesGravatar AG_14362019-12-05-1/+1
| | | | | | | | | | | | Co-Authored-By: Matteo Bertucci <[email protected]>
| | * | Saying goodbye to a eastereggGravatar AG_14362019-12-05-1/+0
| | | | | | | | | | | | RIP `embed.set_footer(text="Why everything so heavy ?")`
| | * | Fixed wrong order of import syntaxGravatar AG_14362019-12-05-2/+2
| | | |
| | * | Added embeds to error messages, new way of joining hints.Gravatar AG_14362019-12-05-11/+17
| | | |
| | * | Update bot/seasons/evergreen/bookmark.py Gravatar AG_14362019-12-05-1/+1
| | | | | | | | | | | | | | | | | | | | Fixed the description of the command itself Co-Authored-By: Matteo Bertucci <[email protected]>
| | * | Fixed cog string issueGravatar AG_14362019-12-05-11/+7
| | | | | | | | | | | | | | | | | | | | -Finally got a string that `describe` the cog Bookmark I love you Ves Zappa <3 . -Fixed no punctuation after `No hint provided` string. -Made it so it follow colo(u)ring theme of the bot.
| | * | Fixed a lot of issues.Gravatar AG_14362019-12-05-29/+24
| | | | | | | | | | | | | | | | | | | | Fixed the coding not satisfying `K&R` code styling Fixed most of the grammatical issues Removed unnecessary `try except` code block , not gonna trigger anyways.
| | * | Fixed grammatical errors, and simplified the code a bit.Gravatar AG_14362019-12-04-19/+17
| | | |
| | * | Introduced `.bm` command for personal bookmarking message via message jump urlGravatar AG_14362019-12-04-0/+78
| | | | | | | | | | | | Pretty much the main file for the command `.bm` used to make bookmark in a heavy server for personal use later, along with hints to organize it easily.
| * | | Update bot/seasons/evergreen/trivia_quiz.pyGravatar Rohan_Iceman2019-12-20-1/+1
| | | | | | | | | | | | Co-Authored-By: Mark <[email protected]>
| * | | Update bot/seasons/evergreen/trivia_quiz.pyGravatar Rohan_Iceman2019-12-20-1/+3
| | | | | | | | | | | | Co-Authored-By: Mark <[email protected]>
| * | | fixed lint errorsGravatar RohanJnr2019-12-20-1/+1
| | | |
| * | | Merge branch 'quiz_fix' of https://github.com/RohanJnr/seasonalbot into quiz_fixGravatar RohanJnr2019-12-20-6/+18
| |\ \ \
| | * | | Trivia: fix spelling error in category embed footerGravatar MarkKoz2019-12-17-1/+1
| | | | |
| | * | | Trivia: fix concatenation of winner mentionsGravatar MarkKoz2019-12-17-3/+1
| | | | |
| | * | | Trivia: space out some of lines of codeGravatar MarkKoz2019-12-17-3/+17
| | | | |
| * | | | In this commit:Gravatar RohanJnr2019-12-20-12/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | - I cleaned up some residue code - The quiz now selects a random category if None provided - Updated doc strings - Displaying the category when the quiz is starting
| * | | fixed a indent errorGravatar RohanJnr2019-12-16-7/+6
| | | |
| * | | Merge branch 'quiz_fix' of https://github.com/RohanJnr/seasonalbot into quiz_fixGravatar RohanJnr2019-12-16-1/+1
| |\ \ \
| | * | | Update bot/seasons/evergreen/trivia_quiz.py Gravatar Rohan_Iceman2019-12-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | adding space around special chars Co-Authored-By: Mark <[email protected]>
| * | | | Fixed indentation, the category_embed function is no longer a property.Gravatar RohanJnr2019-12-16-28/+22
| |/ / /
| * | | added a new command to stop the quiz and removed the cooldown on the quiz ↵Gravatar RohanJnr2019-11-29-6/+15
| | | | | | | | | | | | | | | | command
| * | | Merge branch 'master' into quiz_fixGravatar Rohan_Iceman2019-11-28-33/+605
| |\ \ \
| * | | | Grammar fixesGravatar Joseph Banks2019-11-22-19/+16
| | | | |
| * | | | added cooldown to the quiz command and more refinement and also tested.Gravatar RohanJnr2019-10-20-1/+2
| | | | |
| * | | | 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-23/+39
| | | | | | | | | | | | | | | | | | | | 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-27/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | |
* | | | | Add meta methods to Bot class.Gravatar scragly2019-12-06-1/+97
| | | | |
* | | | | Fix inaccurate annotations for custom checks.Gravatar scragly2019-12-06-2/+2
| |_|_|/ |/| | |
* | | | 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.
* | | | Make AoC channel ID configurable for testing environmentsGravatar Sebastiaan Zeeff2019-12-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I have made the `#advent-of-code` channel id configurable using the same environment variable technique used for other settings. This makes it easier to test features that rely on this channel in a test environment.
* | | | Add context manager to safely unlock role mentionabilityGravatar Sebastiaan Zeeff2019-12-04-0/+23
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, our regualar roles are not mentionable by default. This means that features that rely on roles to keep track of users that want to receive announcements, like the AoC Day Countdown, don't actually ping the users subscribed to it. The solution is obviously that the bot should unlock prior to making the announcement. However, this is complicated by the fact that there needs to be a sufficient delay. both between unlocking and sending the message and between sending the message and locking the role again. If not, Discord's not done synchronizing across all servers and some users won't receive a ping. To make this easier, I have implemented a context manager that takes an instance of `discord.Role` and an optional `delay` (default: 5s) that yields a context in which the role is unlocked. This context manager also makes sure that the role is locked even if an exception occured within the unlocked context.
* | | Merge branch 'master' into exclude-draft-prsGravatar Mark2019-12-03-48/+218
|\ \ \
| * | | 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-4/+22
| |\ \ \ | | | | | | | | | | 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.