| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [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. | ||||
| * | [commands] Refactor special cased discord.py converters. | Rapptz | 2016-04-01 | 1 | -40/+77 |
| | | | | | | | | Code is a little more straightforward. The Member and Channel special cases will now work in private message contexts when given a name. The Member special case will also work if you pass in a name and discriminator combo. | ||||
| * | [commands] Don't yield from inside bot utility functions. | Rapptz | 2016-03-31 | 1 | -14/+5 |
| | | |||||
| * | [commands] Fix infinite recursion on subgroups without a command. | Will Tekulve | 2016-03-31 | 1 | -1/+1 |
| | | | | | | Just as an FYI, ctx.invoked_subcommand will end up being an instance of commands.Group! | ||||
| * | [commands] Add bot decorators into __all__. | Rapptz | 2016-03-11 | 1 | -1/+2 |
| | | |||||
| * | [commands] Add when_mentioned_or helper to have mentions and prefixes. | Rapptz | 2016-03-05 | 2 | -1/+22 |
| | | |||||
| * | [commands] Fix typo in Bot.upload docstring. | Rapptz | 2016-03-02 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix NameError in bot_has_permissions. | Rapptz | 2016-03-02 | 1 | -1/+1 |
| | | |||||
| * | [commands] bot_has_permissions decorator actually checks for bot. | Rapptz | 2016-03-02 | 1 | -1/+1 |
| | | |||||
| * | [commands] Do not swallow AttributeErrors raised by the setup function | Rapptz | 2016-02-24 | 1 | -4/+3 |
| | | |||||
| * | [commands] Helper functions now take *args and **kwargs. | Rapptz | 2016-02-18 | 1 | -30/+24 |
| | | |||||
| * | [commands] Raise RuntimeError instead of StopIteration. | Rapptz | 2016-02-06 | 1 | -2/+3 |
| | | |||||
| * | [commands] Fix crash when a group has no commands and help is requested | Rapptz | 2016-01-30 | 1 | -1/+3 |
| | | |||||
| * | [commands] Change signature convention to use POSIX standards. | Rapptz | 2016-01-29 | 1 | -4/+9 |
| | | |||||
| * | [commands] Raise TypeError if the name is not a string. | Rapptz | 2016-01-29 | 1 | -0/+3 |
| | | |||||