| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Replace Enum with an internal one for significant speed improvements. | Rapptz | 2019-06-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been a massive pain point for me personally due to the poor design of the Enum class leading to the common use cases used in the library being significantly slow. Since this Enum is not public facing in terms of *creation*, I can only implement the APIs that are used when *accessing* them. This Enum is a drop-in replacement to the pre-existing enum.Enum class except it comes with significant speed-ups. Since this is a lot to go over, I will let the numbers speak for themselves: In [4]: %timeit enums.try_enum(enums.Status, 'offline') 263 ns ± 34.3 ns per loop (7 runs, 1000000 loops each) In [5]: %timeit NeoStatus.try_value('offline') 134 ns ± 0.859 ns per loop (7 runs, 10000000 loops each) In [6]: %timeit enums.Status.offline 116 ns ± 0.378 ns per loop (7 runs, 10000000 loops each) In [7]: %timeit NeoStatus.offline 31.6 ns ± 0.327 ns per loop (7 runs, 10000000 loops each) In [8]: %timeit enums.Status.offline.value 382 ns ± 15.2 ns per loop (7 runs, 1000000 loops each) In [9]: %timeit NeoStatus.offline.value 65.5 ns ± 0.953 ns per loop (7 runs, 10000000 loops each) In [10]: %timeit str(enums.Status.offline) 630 ns ± 14.8 ns per loop (7 runs, 1000000 loops each) In [11]: %timeit str(NeoStatus.offline) 253 ns ± 3.53 ns per loop (7 runs, 1000000 loops each) In [12]: %timeit enums.Status('offline') 697 ns ± 8.42 ns per loop (7 runs, 1000000 loops each) In [13]: %timeit NeoStatus('offline') 182 ns ± 1.83 ns per loop (7 runs, 10000000 loops each) | ||||
| * | Improve documentation | NCPlayz | 2019-06-07 | 8 | -40/+45 |
| | | |||||
| * | [commands] Fixed extra "only" in dm_only docs | Dante Dam | 2019-05-19 | 1 | -1/+1 |
| | | |||||
| * | Add asyncio.Task subclass for better __repr__ for events. | Rapptz | 2019-05-19 | 1 | -2/+1 |
| | | |||||
| * | [tasks] Add version added note to Loop.change_interval | Suhail | 2019-05-19 | 1 | -0/+2 |
| | | |||||
| * | [commands] Add missing backtick for is_nsfw docs | Dante Dam | 2019-05-17 | 1 | -1/+1 |
| | | |||||
| * | [tasks] Add way to change interval at run-time | Suhail6inkling | 2019-05-17 | 1 | -10/+37 |
| | | | | | PR: #2162 Fixes: #2158 | ||||
| * | [tasks] Add indicator for internal task failure | Rapptz | 2019-05-13 | 1 | -2/+12 |
| | | | | | Fixes #2151 | ||||
| * | [tasks] Log exception when something failed to logging. | Rapptz | 2019-05-13 | 1 | -0/+6 |
| | | |||||
| * | [tasks] Return coro from before and after decorators | SnowyLuma | 2019-05-13 | 1 | -1/+2 |
| | | |||||
| * | [tasks] Keep retrying before gracefully exiting. | Rapptz | 2019-05-12 | 1 | -2/+10 |
| | | |||||
| * | [tasks] Add Loop.stop to gracefully stop a task. | Rapptz | 2019-05-12 | 1 | -0/+17 |
| | | | | | Updated docs will follow shortly. | ||||
| * | [tasks] Reset iteration count when loop terminates. | Rapptz | 2019-05-12 | 1 | -0/+1 |
| | | |||||
| * | [commands] Explicitly assign invoked_subcommand to None before invoking | Rapptz | 2019-05-11 | 1 | -0/+2 |
| | | | | | | This should fix instances of it not working as expected in nested groups. | ||||
| * | Fix typo in Loop.restart documentation | Steve C | 2019-05-10 | 1 | -1/+1 |
| | | |||||
| * | [tasks] Add Loop.restart | Rapptz | 2019-05-10 | 1 | -1/+28 |
| | | | | | | | | This implementation waits until the task is done before starting it again. Closes #2075 | ||||
| * | [commands] MinimalHelpCommand: add cog description | Benjamin Mintz | 2019-05-09 | 1 | -0/+3 |
| | | |||||
| * | [commands] Better note for Command.invoke | Rapptz | 2019-05-05 | 1 | -6/+11 |
| | | |||||
| * | [tasks] Add way to query cancellation state for Loop.after_loop | Rapptz | 2019-04-30 | 1 | -8/+20 |
| | | | | | Fixes #2121 | ||||
| * | [commands] Fix MessageConverter not inheriting from Converter | Rapptz | 2019-04-29 | 1 | -1/+1 |
| | | | | | Closes #2126 | ||||
| * | [tasks] Remove support for awaitables due to gotchas. | Rapptz | 2019-04-29 | 1 | -17/+17 |
| | | | | | Fixes #2079 | ||||
| * | [commands] Fix Context.send_help to work with the copied HelpCommand | Rapptz | 2019-04-29 | 1 | -0/+2 |
| | | |||||
| * | [commands] Copy HelpCommand instances to prevent race conditions. | Rapptz | 2019-04-29 | 1 | -29/+52 |
| | | | | | | | | | Fixes #2123 Slight breaking change if someone had an expectation that no copies were made behind the scene (which is sensible), however writing code that relies on this expectation is probably buggy anyway. | ||||
| * | [commands] Allow passing `current` to more cooldown mapping methods. | Rapptz | 2019-04-24 | 2 | -5/+9 |
| | | | | | Also adds a CooldownMapping.update_rate_limit helper function. | ||||
| * | [commands] Allow passing of a message to NoPrivateMessage again. | Rapptz | 2019-04-20 | 2 | -4/+5 |
| | | | | | Prevents an accidental breaking change. | ||||
| * | [commands] DM channels are NSFW in commands.is_nsfw check. | Rapptz | 2019-04-20 | 1 | -2/+3 |
| | | |||||
| * | Consistent use of __all__ to prevent merge conflicts. | Rapptz | 2019-04-20 | 6 | -24/+82 |
| | | |||||
| * | [commands] Clean docstrings in Command.parents and Command.root_parent | Rapptz | 2019-04-20 | 1 | -7/+3 |
| | | |||||
| * | [commands] Consistently mention inheritance of exceptions. | Rapptz | 2019-04-20 | 1 | -12/+45 |
| | | |||||
| * | [commands] Add Command.parents | Vexs | 2019-04-20 | 1 | -8/+22 |
| | | | | | Make command.root_parent use new command.parents property | ||||
| * | [commands] Add custom exception classes for built-in checks | Vexs | 2019-04-20 | 2 | -47/+217 |
| | | | | | | | | | Added: * MissingRole * BotMissingRole * MissingAnyRole * BotMissingAnyRole | ||||
| * | [commands] Missing an extra ] in the documented return type. | Rapptz | 2019-04-19 | 1 | -1/+1 |
| | | |||||
| * | [commands] Allow passing cls to the commands.group decorator | Vexs | 2019-04-19 | 1 | -3/+8 |
| | | |||||
| * | [commands] Update default on_command_error | sirtezza451 | 2019-04-18 | 1 | -2/+1 |
| | | |||||
| * | [commands] Add new MessageConverter to commands prose page. | Rapptz | 2019-04-17 | 1 | -4/+6 |
| | | |||||
| * | [commands] Add MessageConverter to fetch messages by URL or ID. | retke | 2019-04-17 | 1 | -1/+36 |
| | | |||||
| * | [tasks] Fix assignment of tuple when appending | Danny | 2019-04-15 | 1 | -1/+1 |
| | | |||||
| * | [commands] Use message creation as the reference time in cooldowns | Rapptz | 2019-04-14 | 1 | -1/+3 |
| | | |||||
| * | [commands] Allow passing reference time to update_rate_limit | Rapptz | 2019-04-14 | 1 | -2/+2 |
| | | |||||
| * | [commands] Support callables in Greedy converter | Rapptz | 2019-04-13 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix lambda converters in non-module contexts. | Rapptz | 2019-04-13 | 1 | -1/+1 |
| | | | | | Not sure why anyone would do this but might as well fix it. | ||||
| * | [tasks] set internal task to None after canceling | Steve C | 2019-04-12 | 1 | -0/+1 |
| | | |||||
| * | [tasks] Add before_loop and after_loop decorators | Rapptz | 2019-04-12 | 1 | -16/+79 |
| | | |||||
| * | [commands] Add versionadded to dm_only | Rapptz | 2019-04-12 | 1 | -0/+2 |
| | | |||||
| * | [tasks] Ensure total number of seconds is not less than 0. | Rapptz | 2019-04-11 | 1 | -3/+6 |
| | | |||||
| * | [tasks] Rename Loop.run to Loop.start to avoid blocking connotations | Rapptz | 2019-04-11 | 1 | -3/+3 |
| | | |||||
| * | [tasks] Add a new background helper 'tasks' extension. | Rapptz | 2019-04-11 | 1 | -0/+209 |
| | | |||||
| * | [commands] Fix erroneous string in dm_only check | Rapptz | 2019-04-11 | 1 | -1/+1 |
| | | |||||
| * | [commands] Added dm_only check | Dante Dam | 2019-04-11 | 2 | -7/+29 |
| | | | | | Raises PrivateMessageOnly on failure. | ||||
| * | [commands] Fix references in Bot to actually link. | Rapptz | 2019-04-10 | 1 | -5/+2 |
| | | | | | Exceptions can't seem to link due to a bug in Sphinx. | ||||