aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | Added checks to ignore webhook and bot messagesGravatar wookie1842020-09-01-0/+4
| |/ / / / / / / |/| | | | | | |
* | | | | | | | Allow moderators to use defconGravatar Dennis Pham2020-08-30-6/+6
| | | | | | | |
| | * | | | | | Removed loading of the Wolfram cog.Gravatar Xithrius2020-08-31-1/+0
| | | | | | | |
| | * | | | | | Removed ImagePaginator testing.Gravatar Xithrius2020-08-31-15/+0
| | | | | | | |
| | * | | | | | Removed image pagination utility.Gravatar Xithrius2020-08-31-164/+0
| | | | | | | |
| | * | | | | | Completely gutted the wolfram command.Gravatar Xithrius2020-08-29-295/+0
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | Moved to seasonalbot/bot/exts/evergreen/wolfram.py
* | | | | | | Merge pull request #1118 from python-discord/bug/mod/1094/watch-leaked-tokenGravatar Dennis Pham2020-08-27-3/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Censor watchchannel messages when they contain leaked tokens
| * \ \ \ \ \ \ Merge branch 'master' into bug/mod/1094/watch-leaked-tokenGravatar Dennis Pham2020-08-27-171/+278
| |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
* | | | | | | | Update Discord Partner badgeGravatar Joe Banks2020-08-27-1/+1
| |_|_|/ / / / |/| | | | | |
| * | | | | | Don't send code block help if message has a webhook tokenGravatar MarkKoz2020-08-20-0/+2
| | | | | | |
| * | | | | | Watchchannels: censor message content if it has a leaked tokenGravatar MarkKoz2020-08-20-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1094
| | | * | | | Everyone Ping: Fixed regex to catch *all* pingsGravatar MrAwesomeRocks2020-08-31-2/+2
| | | | | | |
| | | * | | | Everyone Ping: Regex FixGravatar MrAwesomeRocks2020-08-31-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the regex to not punish users who have text other than `@everyone` in their codeblocks. Multiline codeblocks can now have `@everyone` in them.
| | | * | | | Everyone Ping: PR Review 2Gravatar MrAwesomeRocks2020-08-30-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed redundant comments. Switched to regex to avoid punishing users for putting `@everyone` in codeblocks. Changed log message since this isn't a anti-spam rule based off of frequency. Added check for `<@&{guild_id}>` ping, also checks for codeblocks.
| | | * | | | Everyone Ping: NEGATIVE_REPLIES in titleGravatar MrAwesomeRocks2020-08-30-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The NEGATIVE_REPLIES header is now the title of the embed.
| | | * | | | Everyone Ping: PR ReviewGravatar MrAwesomeRocks2020-08-30-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed cryptic variable name. Changed ping response to use `bot.constants.NEGATIVE_REPLIES`. Changed ping repsonse to only ping user once.
| | | * | | | Everyone ping: added formatting to member countGravatar MrAwesomeRocks2020-08-30-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Seperated the member count by commas every three digits.
| | | * | | | Everyone ping: Changed message, cleaned fileGravatar MrAwesomeRocks2020-08-30-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the message to say the raw member count, not just thousands. Also cleaned up some unused variables and imports in the file.
| | | * | | | Everyone Ping: Fixed linting errorGravatar MrAwesomeRocks2020-08-29-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Switched from string.format to f-string for server member count.
| | | * | | | Everyone Ping: Changed embed text and locationGravatar MrAwesomeRocks2020-08-29-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The you can view the embed text in the `everyone_ping.py` file. The embed also now sends in the server instead of a DM.
| | | * | | | Everyone Ping: Removed debug `print`, spellingGravatar MrAwesomeRocks2020-08-29-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed a debug `print` statement, fixed a spelling mistake. Also added a comment for the DM string.
| | | * | | | Everyone ping: Send embed on ping, fixed checkGravatar MrAwesomeRocks2020-08-29-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a user pings the everyone role, they now get an embed explaining why what they did was wrong. The ping detection was also fixed to not thing that every message was a ping (changed form `>=` to `>`).
| | | * | | | Everyone Ping: Fixed rule, edited configGravatar MrAwesomeRocks2020-08-29-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the method of checking for an everyone ping. Also changed the config to act as `min pings` instead of `ping enabled/disabled`.
| | | * | | | Everyone Ping: Added required values to configGravatar MrAwesomeRocks2020-08-29-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `max` and `interval` values were required, so they were added to the config file and the rule was modified to accept these new values.
| | | * | | | Everyone Ping: Added rule to recognized rulesGravatar MrAwesomeRocks2020-08-29-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added mapping to anti-spam cog, then also edited __init__ in the rules folder to expose the apply function.
| | | * | | | Everyone Ping: Added ruleGravatar MrAwesomeRocks2020-08-29-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the filter rule to the bot/rules folder.
| | | * | | | Everyone Ping: Add rules to default config fileGravatar MrAwesomeRocks2020-08-29-0/+3
| |_|/ / / / |/| | | | |
* | | | | | Merge pull request #1124 from python-discord/feat/backend/707/alias-decoratorGravatar Shirayuki Nekomata2020-08-26-82/+88
|\ \ \ \ \ \ | | | | | | | | | | | | | | Support specifying top-level aliases in the command decorator
| * \ \ \ \ \ Merge branch 'master' into feat/backend/707/alias-decoratorGravatar Shirayuki Nekomata2020-08-26-70/+156
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #1128 from python-discord/bold_linkGravatar Shirayuki Nekomata2020-08-26-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Bold link to asking guide in help channel embeds
| * | | | | | | Bold link to asking guide in embedsGravatar Boris Muratov2020-08-26-2/+2
|/ / / / / / /
* | | | | | | Merge pull request #1105 from python-discord/joseph/enhanced-user-commandGravatar kwzrd2020-08-23-68/+154
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Enhanced user command
| * | | | | | Merge branch 'master' into joseph/enhanced-user-commandGravatar kwzrd2020-08-23-56/+96
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Don't just exclude custom emoji, include the name of the emoteGravatar Joe Banks2020-08-23-1/+3
| | | | | | |
| * | | | | | Address review comments from @kwzrdGravatar Joe Banks2020-08-23-19/+14
| | | | | | |
| * | | | | | Re-align status iconsGravatar Joe Banks2020-08-16-3/+3
| | | | | | |
| * | | | | | Add status information to user commandGravatar Joseph Banks2020-08-14-8/+13
| | | | | | |
| * | | | | | Update tests for user commandsGravatar Joseph Banks2020-08-14-32/+55
| | | | | | |
| * | | | | | Add badges & status to user commandGravatar Joseph Banks2020-08-14-28/+67
| | | | | | |
| * | | | | | Add YAML values for badgesGravatar Joseph Banks2020-08-14-0/+11
| | | | | | |
| * | | | | | Add constants for badgesGravatar Joseph Banks2020-08-14-0/+11
| | |_|_|_|/ | |/| | | |
| | * | | | Type check root aliasesGravatar MarkKoz2020-08-24-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like normal aliases, they should only be tuples or lists. This is likely done by discord.py to prevent accidentally passing a string when only a single alias is desired.
| | * | | | Help: include root aliases in outputGravatar MarkKoz2020-08-22-1/+3
| | | | | |
| | * | | | Include root aliases in the command name conflict testGravatar MarkKoz2020-08-22-0/+1
| | | | | |
| | * | | | Replace alias command definitions with root_aliasesGravatar MarkKoz2020-08-22-81/+15
| | | | | | | | | | | | | | | | | | | | | | | | The fruits of my labour.
| | * | | | Bot: fix AttributeError for commands which lack root_aliasesGravatar MarkKoz2020-08-22-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even if the `command` decorators are patched, there are still some other internal things that need to be patched. For example, the default help command subclasses the original `Command` type. It's more maintainable to exclude root alias support for these objects than to try to patch everything.
| | * | | | Patch d.py decorators to support root aliasesGravatar MarkKoz2020-08-22-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid explicitly specifying `cls` everywhere, patch the decorators to set the default value of `cls` to the `Command` subclass which supports root aliases.
| | * | | | Bot: add root alias supportGravatar MarkKoz2020-08-22-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Override `Bot.add_command` and `Bot.remove_command` to add/remove root aliases for a command (and recursively for any subcommands). This has to happen in `Bot` because there's no reliable way to get the `Bot` instance otherwise. Therefore, overriding the methods in `GroupMixin` unfortunately doesn't work. Otherwise, it'd be possible to avoid recursion by processing each subcommand as it got added.
| | * | | | Define a Command subclass with root alias supportGravatar MarkKoz2020-08-22-0/+15
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A subclass is used because cogs make copies of Command objects. They do this to allow multiple instances of a cog to be used. If the Command class doesn't inherently support the `root_aliases` kwarg, it won't end up being copied when a command gets copied. `Command.__original_kwargs__` could be updated to include the new kwarg. However, updating it and adding the attribute to the command wouldn't be as elegant as passing a `Command` subclass as a `cls` attribute to the `commands.command` decorator. This is because the former requires copying the entire code of the decorator to add the two lines into the nested function (it's a decorator with args, hence the nested function).
* | | | | Disable raw commandsGravatar Joe Banks2020-08-20-2/+2
| | | | |