| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [commands] Forbid passing a string to aliases in Command. | Rapptz | 2017-12-29 | 1 | -0/+4 |
| | | | | | Fixes #974 | ||||
| * | Add support for animated emoji to commands ext EmojiConverter | Joshua Butt | 2017-12-22 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix minor spelling mistake | S Stewart | 2017-11-20 | 1 | -1/+1 |
| | | |||||
| * | [commands] Minor speed-up for the BucketType.guild case. | Rapptz | 2017-10-08 | 1 | -1/+1 |
| | | | | | | | | | None case: 344ns ± 24.4ns -> 49.9ns ± 1.39ns Valid case: 128ns ± 2.76ns -> 42.7ns ± 0.459ns | ||||
| * | [commands] Make CooldownMapping.get_bucket take Message instead. | Rapptz | 2017-10-08 | 2 | -7/+6 |
| | | | | | | Requiring a full blown Context might be a bit overkill considering we only use a single attribute from it. | ||||
| * | [commands] Split Cooldown state processing to two different functions. | MysterialPy | 2017-10-03 | 2 | -8/+34 |
| | | | | | | This allows us to check if we are rate limited without creating a new cool-down window for the command. | ||||
| * | [commands] Add CategoryChannelConverter | Rapptz | 2017-09-13 | 1 | -1/+42 |
| | | |||||
| * | [commands] Fix NameError when given an invalid prefix. | Rapptz | 2017-09-12 | 1 | -1/+1 |
| | | | | | Closes #775 | ||||
| * | [commands] Have (bot_)has_permissions provide better failure responses | ReinaSakuraba | 2017-08-30 | 1 | -2/+21 |
| | | |||||
| * | [commands] Add MissingPermissions and BotMissingPermissions | ReinaSakuraba | 2017-08-30 | 1 | -1/+43 |
| | | |||||
| * | [commands] Add CooldownMapping.from_cooldown factory classmethod. | Rapptz | 2017-08-27 | 1 | -0/+4 |
| | | |||||
| * | [commands] Export cooldown classes as well. | Rapptz | 2017-08-27 | 1 | -1/+1 |
| | | |||||
| * | [commands] Raise when an invalid prefix is given. | Rapptz | 2017-08-15 | 1 | -5/+18 |
| | | | | | Fixes #712 | ||||
| * | [commands] Ensure no mentions escape clean_content | Rapptz | 2017-08-10 | 1 | -10/+2 |
| | | | | | | Some clever nicknames or role names would lead themselves to resolving to pings. | ||||
| * | [commands] Fix clean_content converter not properly escaping mentions. | Rapptz | 2017-08-10 | 1 | -24/+29 |
| | | | | | | | | | In some cases, the Discord provided role_mentions and mentions array would be empty, such as wrapping a mention with a backtick or other frivolous characters. Since we want to completely nullify mentions, we should not rely on the Discord provided arrays and instead use and resolve the IDs from the content itself. | ||||
| * | [commands] Fix Command.root_parent not properly working. | Rapptz | 2017-07-19 | 1 | -2/+4 |
| | | |||||
| * | [commands] Restart the StringView properly in Context.reinvoke. | Rapptz | 2017-07-18 | 1 | -1/+3 |
| | | | | | | | | | | The old code for some reason assumed that the length of the command would be 1. This is because when I tested this I would use single letter command names and it would "just work" when in reality it was completely incorrect. A reminder to thoroughly test instead of just fitting something to work | ||||
| * | [commands] Remove support for pass_context=False in Command. | Rapptz | 2017-07-18 | 3 | -17/+13 |
| | | |||||
| * | First pass at commands narrative documentation. | Rapptz | 2017-07-08 | 1 | -2/+2 |
| | | |||||
| * | [commands] unload cog submodules | khazhyk | 2017-07-07 | 1 | -0/+3 |
| | | | | | | | | | When unloading cogs, currently we do not remove submodules from sys.modules, meaning they will not be reloaded. Removing here makes new imports reload from file. Of course, any already imported modules will still hold a reference to the old module, since they will not re-import it, and will not be forcably unloaded. | ||||
| * | [commands] fix unloading incorrect cogs | khazhyk | 2017-07-03 | 1 | -3/+6 |
| | | | | | | | unload_extension would incorrectly unload cogs/listeners of other extensions if the name of one was a prefix of another. | ||||
| * | [commands] clean up remove_cog documentation | khazhyk | 2017-07-03 | 1 | -3/+2 |
| | | | | remove_cog always returns None, even if the cog is found. | ||||
| * | [commands] Improve commands.when_mentioned_or documentation. | Rapptz | 2017-07-01 | 1 | -2/+19 |
| | | |||||
| * | [commands] Do not take up 'command' keyword-argument in Context.invoke. | Rapptz | 2017-06-27 | 1 | -3/+12 |
| | | | | | | It was annoying when commands would have a keyword-only argument named 'command', such as a help command or a disable command. | ||||
| * | [commands] Add parameter that failed in fall-back BadArgument error. | Rapptz | 2017-06-26 | 1 | -1/+1 |
| | | |||||
| * | [commands] Ensure that Context.command is the command in Command.can_run | Rapptz | 2017-06-21 | 1 | -17/+23 |
| | | | | | | | | | | Previously, Context.command was not guaranteed to be the actual command being checked if it can run. This could be troublesome when implementing help commands or when using the default help command. This new change allows at least for the guarantee that Context.command to be technically correct in Command.can_run. | ||||
| * | [commands] Add Bot.check_once for a global check that is called once. | Rapptz | 2017-06-20 | 1 | -11/+74 |
| | | | | | | | | There is a counterpart for this in cogs, called __global_check_once. This allows for predicates that would filter a command globally that do not necessarily require rechecking in the case of e.g. the help command such as blocking users or blocking channels. | ||||
| * | [commands] Try to use the proper name when conversion fails. | Rapptz | 2017-06-17 | 1 | -1/+6 |
| | | |||||
| * | [commands] Fix cog error detection in the default global error handler. | Rapptz | 2017-06-13 | 1 | -1/+1 |
| | | |||||
| * | [commands] Don't display default error handler if a cog local exists. | Rapptz | 2017-06-12 | 1 | -2/+8 |
| | | |||||
| * | [commands] Add docstrings for extension loading. | Rapptz | 2017-06-05 | 1 | -0/+42 |
| | | |||||
| * | [commands] Allow inline advanced converters via classmethods. | Rapptz | 2017-06-01 | 1 | -4/+10 |
| | | | | | | That way you don't need to have, e.g. Foo and FooConverter and can do it inline via Foo instead. | ||||
| * | [commands] Add escape_markdown parameter for clean_content. | Rapptz | 2017-05-28 | 1 | -1/+16 |
| | | |||||
| * | [commands] Fix EmojiConverter not working with underscore names. | Rapptz | 2017-05-26 | 1 | -3/+3 |
| | | |||||
| * | Use Python3Lexer instead of PythonLexer for pygments. | Rapptz | 2017-05-22 | 2 | -8/+8 |
| | | |||||
| * | [commands] Add Context.reinvoke and Command.root_parent | Rapptz | 2017-05-19 | 2 | -2/+128 |
| | | | | | | | | | | | | Context.reinvoke would be the new way to bypass checks and cooldowns. However, with its addition comes a change in the invocation order of checks, callbacks, and cooldowns. While previously cooldowns would trigger after command argument parsing, the new behaviour parses cooldowns before command argument parsing. The implication of this change is that Context.args and Context.kwargs will no longer be filled properly. | ||||
| * | [commands] Fix Context.command_failed from being incorrect. | Rapptz | 2017-05-18 | 3 | -2/+5 |
| | | | | | | | When used, it would be set to False after the invoke was done. Ideally it should report to False during invoke but True during any error case. | ||||
| * | [commands] Update check examples to work with rewrite. | Rapptz | 2017-05-15 | 1 | -10/+10 |
| | | |||||
| * | First pass at documentation reform. | Rapptz | 2017-05-12 | 6 | -165/+265 |
| | | |||||
| * | [commands] Converter.convert is always a coroutine. | Rapptz | 2017-05-10 | 2 | -78/+83 |
| | | | | | | | | | Along with this change comes with the removal of Converter.prepare and adding two arguments to Converter.convert, the context and the argument. I suppose an added benefit is that you don't have to do attribute access since it's a local variable. | ||||
| * | [commands] Fix default error handler to work with the switch. | Rapptz | 2017-05-10 | 1 | -1/+1 |
| | | |||||
| * | [commands] Re-order error handler arguments. | Rapptz | 2017-05-10 | 2 | -7/+7 |
| | | | | | | They now have Context as the first argument to be consistent with other context-passing functions. | ||||
| * | [commands] Export is_nsfw check. | Rapptz | 2017-05-05 | 1 | -1/+1 |
| | | |||||
| * | [commands] Add is_nsfw check. | Rapptz | 2017-05-01 | 1 | -0/+6 |
| | | |||||
| * | [commands] Fix lack of space in when_mentioned | Rapptz | 2017-04-24 | 1 | -1/+1 |
| | | |||||
| * | [commands] Add Context.voice_client shortcut. | Rapptz | 2017-04-24 | 1 | -0/+6 |
| | | |||||
| * | [commands] Make when_mentioned always have both mention formats. | Rapptz | 2017-04-24 | 1 | -5/+2 |
| | | | | | | This will allow it to work in mobile clients which don't respect the <@!id> format in case of nicknames. | ||||
| * | [commands] Allow loading cogs from folders. | Rapptz | 2017-04-21 | 2 | -9/+10 |
| | | | | | | | | | | Internally, instead of using module objects just use the `__module__` attribute which is the same thing. From preliminary testing this seems to work fine with both regular one-file-per-cog approaches and the folder cog approach. Fixes #126. | ||||
| * | [commands] Bot.get_all_emojis no longer exists. | Rapptz | 2017-04-12 | 1 | -2/+2 |
| | | |||||
| * | [commands] Export missing built-in converters. | Rapptz | 2017-04-12 | 1 | -1/+1 |
| | | |||||