| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [commands] Fix mistake in Paginator error message. | Max Kamps | 2016-10-03 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix Paginator still allowing lines which are too long. | Max Kamps | 2016-10-03 | 1 | -1/+1 |
| | | |||||
| * | [commands] Raise exception if Paginator gets a line that is too big. | Rapptz | 2016-09-26 | 1 | -0/+11 |
| | | | | | Fixes #340 | ||||
| * | [commands] Allow coroutine functions in Bot.command_prefix | Rapptz | 2016-09-17 | 1 | -3/+8 |
| | | |||||
| * | [commands] Default converters now take in IDs to match against. | Rapptz | 2016-09-09 | 1 | -10/+17 |
| | | |||||
| * | [commands] Cooldowns don't trigger due to user usage error. | Rapptz | 2016-09-08 | 1 | -11/+9 |
| | | | | | Fixes #325 | ||||
| * | [commands] Added a method to reset command cooldown. | Dan Hess | 2016-09-08 | 2 | -0/+17 |
| | | |||||
| * | [commands] Delete module when it does not have a setup function. | Rapptz | 2016-08-10 | 1 | -0/+2 |
| | | |||||
| * | [commands] Add missing inspect import in converter.py | Rapptz | 2016-08-04 | 1 | -0/+1 |
| | | |||||
| * | [commands] Add custom emoji converter. | Khazhismel | 2016-07-31 | 1 | -0/+31 |
| | | |||||
| * | [commands] Make HelpFormatter ignore hidden commands for max_width. | PapyrusThePlant | 2016-07-30 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix cooldown decorator to work regardless of order. | Rapptz | 2016-07-22 | 1 | -1/+1 |
| | | |||||
| * | [commands] Implement a command cooldown system. | Rapptz | 2016-07-22 | 4 | -3/+193 |
| | | | | | | | | | | | | | | | | | | The way the command cooldown works is using a windowed way of doing it. That is, if we have a cooldown of 2 commands every 30 seconds then if we do a single command, we have 30 seconds to do the second command or else we will get rate limited. This more or less matches the common expectations on how cooldowns should be. These cooldowns can be bucketed up to a single dimension of depth for a per-user, per-guild, or per-channel basis. Of course, a global bucket is also provided. These cannot be mixed, e.g. no per-channel per-user cooldowns. When a command cooldown is triggered, the error handlers will receive a an exception of type CommandOnCooldown with proper information regarding the cooldown such as retry_after and the bucket information itself. | ||||
| * | [commands] Add UserInputError into the exception hierarchy. | Rapptz | 2016-07-21 | 1 | -8/+18 |
| | | | | | | | | | | | | This is for exceptions that are inherently based on user errors and not permission based. e.g. passing incorrect number of arguments, too many arguments, or an invalid argument. CommandNotFound is not classified under this since it isn't inherently a user input error in all cases. Some invalid commands can simply be due to an odd bot prefix. It would also diminish the usefulness of the new parent class if CommandNotFound was included. | ||||
| * | [commands] Make Bot.check decorator an actual decorator. | Rapptz | 2016-07-08 | 1 | -6/+4 |
| | | |||||
| * | [commands] Added missing parenthesis in examples | PapyrusThePlant | 2016-07-08 | 1 | -8/+8 |
| | | |||||
| * | [commands] Refactor pagination into its own class. | Rapptz | 2016-07-05 | 2 | -49/+71 |
| | | | | | | | This change allows users to more easily create their own formatters without having to reinvent the pagination logic themselves. Hopefully this makes it less of a pain for people to create custom help pages. | ||||
| * | [commands] Fix error in converters in a private message context. | Rapptz | 2016-07-02 | 2 | -11/+11 |
| | | | | | | I was referencing a member function that did not actually exist. So I ported it over to a free function that could be used. | ||||
| * | [commands] Do not lower-case the function name for default command names | Rapptz | 2016-07-01 | 1 | -2/+2 |
| | | | | | There are some badlets out there that apparently violate PEP-8. | ||||
| * | [commands] Make GroupMixin.remove_command return None. | Rapptz | 2016-06-30 | 1 | -0/+5 |
| | | | | | | This is for cases where the command has been removed already. This will make the function have a somewhat no exception guarantee. | ||||
| * | [commands] Fix error where consume rest would not work. | Rapptz | 2016-06-23 | 1 | -1/+1 |
| | | | | | I didn't end up refactoring this piece of work out. | ||||
| * | [commands] Fix bug that made functions stop working as converters. | Rapptz | 2016-06-23 | 1 | -1/+1 |
| | | |||||
| * | [commands] Port special cased discord converters to commands.Converter | Rapptz | 2016-06-22 | 3 | -116/+163 |
| | | |||||
| * | [commands] Add commands.Converter base for converts with context. | Rapptz | 2016-06-22 | 1 | -5/+38 |
| | | | | | | This allows users to implement converters that work similar to the ones special cased by the `discord` classes. | ||||
| * | [commands] Add Command.ignore_extra attribute to ignore extra arguments | Rapptz | 2016-06-20 | 2 | -3/+20 |
| | | | | | | | | | | | | This allows you to strictly require a number of arguments. The default behaviour in this case is still `True`, since it would be a breaking change otherwise and is a sane default. However if someone would want to set this to `False`, they would receive an exception of type `TooManyArguments` if too many arguments are passed to a command. Hopefully this removes the uses of `ctx.message.content == 'stuff'` inside commands. | ||||
| * | [commands] Add the concept of global checks. | Rapptz | 2016-06-19 | 2 | -2/+90 |
| | | | | | | | | Global checks are checks that are executed before regular per-command checks except done to every command that the bot has registered. This allows you to have checks that apply to every command without having to override `on_message` or appending the check to every single command. | ||||
| * | [commands] Add `delete_after` keyword argument to utility functions. | Rapptz | 2016-06-19 | 1 | -4/+82 |
| | | | | | | This includes things like `Bot.say`, `Bot.upload`, `Bot.whisper`, and `Bot.reply`. | ||||
| * | [commands] Add Context.cog property. | Rapptz | 2016-06-16 | 1 | -0/+7 |
| | | |||||
| * | [commands] Only show CommandNotFound on non-empty commands. | Rapptz | 2016-06-14 | 1 | -1/+1 |
| | | |||||
| * | [commands] Make the CommandError required argument optional again. | Rapptz | 2016-06-10 | 1 | -4/+7 |
| | | |||||
| * | [commands] Fix @everyone elevation in the default help command. | Rapptz | 2016-06-10 | 1 | -2/+14 |
| | | |||||
| * | [commands] Fix bug with Context.command not updating in groups. | Rapptz | 2016-06-10 | 1 | -0/+1 |
| | | | | | This happened when `invoke_without_command` was set to True. | ||||
| * | [commands] Make it so CommandError does not contain @everyone mentions. | Rapptz | 2016-06-10 | 1 | -1/+5 |
| | | | | | Mitigates some permission elevation issues. | ||||
| * | [commands] Exceptions raised while invocation raise CommandInvokeError. | Rapptz | 2016-06-10 | 2 | -2/+15 |
| | | | | | | | This change should make it a bit more intuitive to get the original exception without having the gotcha of checking ``isinstance`` inside the error handler. | ||||
| * | [commands] Fix issue with proper local error handlers not beign called. | Rapptz | 2016-06-10 | 1 | -1/+1 |
| | | |||||
| * | [commands] Unify Command.handle_local_error into general dispatcher. | Rapptz | 2016-06-05 | 2 | -9/+11 |
| | | |||||
| * | [commands] Add Command.qualified_name to get the full command name. | Rapptz | 2016-06-04 | 2 | -16/+36 |
| | | | | | This also sets `__str__` to do the same thing. | ||||
| * | [commands] Fix bug where Context.command would not update. | Rapptz | 2016-06-04 | 2 | -1/+2 |
| | | |||||
| * | [commands] Fix bug where subgroups would be repeatedly called. | Rapptz | 2016-06-04 | 1 | -2/+6 |
| | | | | | | | | This happened due to not resetting the `invoked_subcommand` state tracking. Since the `invoked_subcommand` was not reset, it would always assume that it was valid and repeatedly call it when passed invalid subcommands/arguments. | ||||
| * | [commands] Cleanup Command.invoke code due to exception propagation. | Rapptz | 2016-06-04 | 1 | -14/+8 |
| | | |||||
| * | [commands] Dispatch command_error on command exec error. | Khazhismel Kumykov | 2016-06-04 | 2 | -64/+81 |
| | | | | | | | Provide fallback on_command_error - will only fire if no cog handlers and no local handler. Propagate exceptions in checks and argument parsing to bot. | ||||
| * | [commands] Delete frame objects when done using them. | Rapptz | 2016-05-31 | 1 | -3/+7 |
| | | |||||
| * | [commands] Add support for self-bots. | Rapptz | 2016-05-31 | 1 | -2/+8 |
| | | |||||
| * | [commands] Fix when_mentioned when handling nicknames. | Rapptz | 2016-05-01 | 1 | -1/+4 |
| | | |||||
| * | [commands] Allow role mentions to work with discord.Role params. | Rapptz | 2016-04-29 | 1 | -2/+6 |
| | | | | | | This also fixes the Member regex to support the new <@!user_id> syntax and allows colours to have a leading # before the number. | ||||
| * | Begin working on gateway v4 support. | Rapptz | 2016-04-27 | 2 | -3/+3 |
| | | | | | | | Bump websockets requirement to v3.1 Should be squashed... | ||||
| * | [commands] Make sure that mentions are the entire string. | Rapptz | 2016-04-23 | 1 | -2/+2 |
| | | |||||
| * | [commands] CommandError derived exceptions in checks don't crash help. | Rapptz | 2016-04-13 | 1 | -1/+5 |
| | | |||||
| * | [commands] Add deterministic cog unloading. | Rapptz | 2016-04-04 | 1 | -0/+10 |
| | | | | | | The special function is `__unload` to prevent with name conflicts with existing or future cogs. | ||||
| * | [commands] Fix pagination logic a little inside HelpFormatter. | Rapptz | 2016-04-02 | 1 | -10/+10 |
| | | | | | This should prevent pages accidentally reaching >2k chars. | ||||