aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'main' of https://github.com/python-discord/sir-lancebotGravatar evgriff2021-12-15-34/+18
|\
| * Merge branch 'main' into yank-lovefest-subGravatar Xithrius2021-12-15-2/+86
| |\
| | * Reflect new message converter behaviour in bm help messageGravatar Chris Lovering2021-12-05-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.
| * | chore: update lovefest docstring to reflect deprecationGravatar onerandomusername2021-12-03-5/+2
| | |
| * | chore: remove subcommands entirelyGravatar onerandomusername2021-12-03-13/+1
| | |
| * | yank lovefest role management commandsGravatar onerandomusername2021-12-03-20/+11
| | |
| * | feat: implement moving commandsGravatar onerandomusername2021-12-03-1/+9
| | | | | | | | | | | | add exceptions and handler for commands that move locations
* | | Adding suggestions, removing erroneous commitGravatar evgriff2021-12-15-6/+5
| | |
* | | added key checkGravatar evgriff2021-12-10-1/+1
| | |
* | | Merge branch 'main' of https://github.com/python-discord/sir-lancebotGravatar evgriff2021-12-10-97/+170
|\ \ \ | | |/ | |/|
| * | Add more information to `.aoc lb` error embedGravatar Janine vN2021-12-04-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.
| * | Adjust variable name for clarity and add spaceGravatar Janine vN2021-12-04-3/+3
| | |
| * | Adjust `.aoc lb` to use linked account in cacheGravatar Janine vN2021-12-03-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.
| * | Merge branch 'main' into aoc-linkGravatar Janine vN2021-12-03-76/+71
| |\|
| | * Merge branch 'main' into aoc-lb-multiwordGravatar Hassan Abouelela2021-12-03-18/+22
| | |\
| | | * Merge branch 'main' into update-role-constantsGravatar Hassan Abouelela2021-12-02-69/+51
| | | |\
| | | * | Revert change to if statement checking if staff in `.aoc join`Gravatar Izan2021-11-29-1/+1
| | | | |
| | | * | Merge branch 'main' into update-role-constantsGravatar TizzySaurus2021-11-29-69/+1008
| | | |\ \
| | | * | | Make certain AOC commands guild-onlyGravatar Izan2021-10-11-0/+3
| | | | | |
| | | * | | Check role id in STAFF_ROLES instead of comparing to helpersGravatar Izan2021-10-11-2/+2
| | | | | |
| | | * | | Check role id in MODERATION_ROLES instead of comparing to moderation_team ↵Gravatar Izan2021-10-11-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | and safeguard `.roles` attribute
| | | * | | Rename `Roles.admin` to `Roles.admins`Gravatar Izan2021-10-11-4/+4
| | | | | |
| | | * | | Rename `Roles.moderator` to `Roles.moderation_team`Gravatar Izan2021-10-11-2/+2
| | | | | |
| | * | | | Note why .aoc lb strips quotes from namesGravatar Ben Soyka2021-12-02-0/+1
| | | | | |
| | * | | | Note that only one layer of quotes is stripped in .aoc lbGravatar Ben Soyka2021-12-02-1/+3
| | | | | |
| | * | | | Shorten parameter name for .aoc lbGravatar Ben Soyka2021-12-01-13/+8
| | | | | |
| | * | | | Strip quotes from start/end of the username for .aoc lbGravatar Ben Soyka2021-12-01-0/+4
| | | | | |
| | * | | | Make self_placement_name keyword-only in .aoc lbGravatar Ben Soyka2021-12-01-0/+1
| | | |_|/ | | |/| |
| | * | | fix: hanukkah command respects month boundariesGravatar aru2021-12-01-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.
| * | | | Make aoc_name a keyword arguemnt to accept spacesGravatar Janine vN2021-12-03-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.
| * | | | Adjust wording on log statements to present tenseGravatar Janine vN2021-12-03-3/+3
| | | | |
| * | | | Add unlink AoC commandGravatar Janine vN2021-12-03-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.
| * | | | Remove unneeded check and add commentsGravatar Janine vN2021-12-03-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.
| * | | | Add `.aoc link` commandGravatar Janine vN2021-12-01-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.
| * | | Use Discord timestamps for aoc next day messages countdownsGravatar Chris Lovering2021-11-29-4/+3
| | | |
| * | | Use a Discord timestamp to show countdownGravatar Chris Lovering2021-11-29-6/+2
| | | | | | | | | | | | | | | | This gives the user the ability to hover the timestamp with their mouse to get an exact date and time.
| * | | Swap conditional in aoc countGravatar Chris Lovering2021-11-29-21/+20
| | |/ | |/| | | | | | | This is so that there is less code within the if block, making it easier to parse the whole command by eye.
* / | Added the user's score to Candy Command according to #947Gravatar evgriff2021-12-10-0/+12
|/ /
* | Fix a grammatical mistake in the description of the `.spookify` commandGravatar DMFriends2021-11-22-1/+1
| |
* | Add check to ensure the day-and-star data existsGravatar D0rs4n2021-11-21-3/+8
| |
* | Update Caching logic in AoC helpersGravatar D0rs4n2021-11-19-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]>
* | Introduce command changes in the AoC CogGravatar D0rs4n2021-11-18-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.
* | Merge branch 'main' into color-677Gravatar Matteo Bertucci2021-11-14-38/+69
|\ \
| * \ Merge branch 'main' into challenge-fixGravatar Hassan Abouelela2021-11-10-55/+320
| |\ \
| | * | Handle `.wtf` command without query (#939)Gravatar brad90four2021-11-07-1/+13
| | | | | | | | | | | | | | | | Co-authored-by: Hedy Li <[email protected]> Co-authored-by: Xithrius <[email protected]>
| | * | Limit user reactions on embed paginationGravatar NipaDev2021-11-05-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 option to get specific amount of realpython articlesGravatar NipaDev2021-11-05-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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]>
| | * | Candy Game: Ignore reactions to bot messages when adding candiesGravatar Hedy Li2021-10-29-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check whether a reaction is for a bot message when adding candies upon reactions. Previously you could use bot's reaction buttons which would trigger `on_reaction_add` and have a high chance of getting candies (or skulls). It can easily be abused to spam reactions, which apparently doesn't trigger an auto-mute like spamming messages do, AFAIK. In any case, I don't really feel good about reactions triggering candies. Despite this fix, the game *can* still be abused (but I won't tell you how). Though this occuring by accident is less likely than before. Either figure it out yourself or don't try to cheat :P This patch can be tested using the `.snake antidote` game when you react to the recipe buttons. Using `.help` works too but it produces a lot of noise in the logs. Tic tac toe may be helpful as well. Anyway, you could just react to bot messages yourself.
| | * | Migrate to `og_blurple` (#924)Gravatar TizzySaurus2021-10-26-12/+12
| | | |
| * | | Fix line after function docstringGravatar Shom7702021-11-07-1/+0
| | | |