Rapptz
1c623ccf11
Begin working on gateway v4 support.
...
Bump websockets requirement to v3.1
Should be squashed...
2016-04-27 18:36:13 -04:00
Rapptz
82b2421ac7
[commands] Add deterministic cog unloading.
...
The special function is `__unload` to prevent with name conflicts with
existing or future cogs.
2016-04-04 04:45:15 -04:00
Rapptz
c015e492d7
[commands] Don't yield from inside bot utility functions.
2016-03-31 20:09:20 -04:00
Rapptz
4a1313f00c
[commands] Add when_mentioned_or helper to have mentions and prefixes.
2016-03-05 20:10:11 -05:00
Rapptz
c0dba0f4f2
[commands] Fix typo in Bot.upload docstring.
2016-03-02 23:27:57 -05:00
Rapptz
bf2b8744a5
[commands] Do not swallow AttributeErrors raised by the setup function
2016-02-24 15:14:20 -05:00
Rapptz
98090a2a57
[commands] Helper functions now take *args and **kwargs.
2016-02-18 19:42:03 -05:00
Rapptz
d013032522
[commands] Allow setting the bot error messages in the help command.
...
This is to help out those folks that don't speak English.
2016-01-23 04:00:41 -05:00
Rapptz
bb5e222f29
[commands] Add Bot.help_attrs to customise the help command.
...
The help message now uses the invoked_with attribute of the context to
get the name of the command it uses instead of a hardcoded help.
2016-01-23 03:43:54 -05:00
Rapptz
abbe79919b
[commands] Change Bot.pm_help to be an optional bool.
...
The behaviour of passing in pm_help=None makes it so the bot will only
send private messages if the length of the message is too "big", which
is defined as having more than 1000 characters in the output.
2016-01-23 03:15:12 -05:00
Rapptz
bc7606a42c
[commands] Add on_command and on_command_completion events.
2016-01-14 12:49:42 -05:00
Rapptz
18c71ab57c
[commands] Fix issue where Bot would raise if not given a description.
2016-01-14 01:25:40 -05:00
Rapptz
b1d8e12609
[commands] Cleanup descriptions being passed.
2016-01-13 22:05:21 -05:00
Rapptz
4edff12f6b
Proper exception chaining.
2016-01-13 20:08:55 -05:00
Rapptz
31db6efc7f
[commands] Fix handling of nested subcommand help handling.
2016-01-12 01:17:27 -05:00
Rapptz
b335e9ea30
[commands] Support invoking the help command with a cog name.
2016-01-12 00:45:45 -05:00
Rapptz
958d278771
[commands] Initial implementation of help command.
2016-01-11 23:59:11 -05:00
Rapptz
efcc55bd32
[commands] Proper cleanup of cogs.
2016-01-10 02:26:57 -05:00
Rapptz
b87d5e5337
[commands] Add basic support for extensions.
2016-01-09 18:33:37 -05:00
Rapptz
0a07fc088c
[commands] Inject the internal variables for bot.say & co explicitly.
...
This is to catch cases where it wouldn't fail to find it when
inspecting the stack to catch these stack variables.
2016-01-09 15:16:28 -05:00
Rapptz
ec6b1997ad
[commands] Add support for cogs.
...
Cogs are basically class instances that have commands and event
listeners. They allow for better organisation and grouping of
commands and state. Similar to subclassing discord.Client.
2016-01-09 02:18:03 -05:00
Rapptz
c06dbbd1f0
[commands] Add support for registering more than one event listener.
2016-01-08 20:37:13 -05:00
Rapptz
52eb0e3adb
[commands] Change prefix callback signature and add when_mentioned.
...
The utility allows for easy addition of "when the bot is mentioned"
as the prefix. The change of signature was to facilitate this.
2016-01-08 19:40:00 -05:00
Rapptz
542ddc4938
[commands] Allow registration of multiple command prefixes.
2016-01-07 16:20:33 -05:00
Rapptz
8c6eeeed5f
[commands] Don't skip whitespace if the command trigger is found.
2016-01-06 19:21:58 -05:00
Rapptz
51186c3ca4
[commands] Add CommandNotFound error.
2016-01-05 01:11:52 -05:00
Rapptz
59ca5ec386
Initial implementation of commands extension module.
2016-01-04 22:22:52 -05:00