Rapptz
c015e492d7
[commands] Don't yield from inside bot utility functions.
9 years ago
Rapptz
4a1313f00c
[commands] Add when_mentioned_or helper to have mentions and prefixes.
9 years ago
Rapptz
c0dba0f4f2
[commands] Fix typo in Bot.upload docstring.
9 years ago
Rapptz
bf2b8744a5
[commands] Do not swallow AttributeErrors raised by the setup function
9 years ago
Rapptz
98090a2a57
[commands] Helper functions now take *args and **kwargs.
9 years ago
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.
9 years ago
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.
9 years ago
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.
9 years ago
Rapptz
bc7606a42c
[commands] Add on_command and on_command_completion events.
9 years ago
Rapptz
18c71ab57c
[commands] Fix issue where Bot would raise if not given a description.
9 years ago
Rapptz
b1d8e12609
[commands] Cleanup descriptions being passed.
9 years ago
Rapptz
4edff12f6b
Proper exception chaining.
9 years ago
Rapptz
31db6efc7f
[commands] Fix handling of nested subcommand help handling.
9 years ago
Rapptz
b335e9ea30
[commands] Support invoking the help command with a cog name.
9 years ago
Rapptz
958d278771
[commands] Initial implementation of help command.
9 years ago
Rapptz
efcc55bd32
[commands] Proper cleanup of cogs.
9 years ago
Rapptz
b87d5e5337
[commands] Add basic support for extensions.
9 years ago
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.
9 years ago
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.
9 years ago
Rapptz
c06dbbd1f0
[commands] Add support for registering more than one event listener.
9 years ago
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.
9 years ago
Rapptz
542ddc4938
[commands] Allow registration of multiple command prefixes.
9 years ago
Rapptz
8c6eeeed5f
[commands] Don't skip whitespace if the command trigger is found.
9 years ago
Rapptz
51186c3ca4
[commands] Add CommandNotFound error.
9 years ago
Rapptz
59ca5ec386
Initial implementation of commands extension module.
9 years ago