20 Commits

Author SHA1 Message Date
Rapptz
b6bff5172a [commands] Remove Commands: if no commands can be run in help command. 2017-02-13 04:27:31 -05:00
Rapptz
47ef657fbd Implement async checks. Fixes #380. 2017-02-12 12:13:23 -05:00
Michael Van Buren
84dfd7b3e3 [commands] Add Command.usage argument to override argument display. 2017-02-10 03:35:25 -05:00
Rapptz
ff9f5749e1 Update copyright year to 2017. 2017-01-20 23:19:19 -05:00
khazhyk
b1117262da [commands] Run global checks in help formatter.
Help formatter was not checking global bot-level checks, resulting in
showing commands a user did not have permission for with
show_check_failure disabled.
2016-12-16 14:39:25 -05:00
Max Kamps
25c262461e [commands] Fix mistake in Paginator error message. 2016-10-03 13:27:02 +02:00
Max Kamps
8f0d16629f [commands] Fix Paginator still allowing lines which are too long. 2016-10-03 00:32:12 -04:00
Rapptz
7c0be1cade [commands] Raise exception if Paginator gets a line that is too big.
Fixes #340
2016-09-26 23:26:26 -04:00
PapyrusThePlant
3ec9b7fb97 [commands] Make HelpFormatter ignore hidden commands for max_width. 2016-07-30 13:27:41 -04:00
Rapptz
166d8257ec [commands] Refactor pagination into its own class.
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.
2016-07-05 21:44:14 -04:00
Rapptz
661645ac97 [commands] Add Command.qualified_name to get the full command name.
This also sets `__str__` to do the same thing.
2016-06-04 22:31:00 -04:00
Rapptz
054c9c7109 [commands] CommandError derived exceptions in checks don't crash help. 2016-04-13 14:25:45 -04:00
Rapptz
4451091c91 [commands] Fix pagination logic a little inside HelpFormatter.
This should prevent pages accidentally reaching >2k chars.
2016-04-02 08:15:34 -04:00
Rapptz
17e17cade9 [commands] Fix crash when a group has no commands and help is requested 2016-01-30 20:29:58 -05:00
Rapptz
7056a1f0ec [commands] Change signature convention to use POSIX standards. 2016-01-29 21:40:19 -05:00
Rapptz
d8d4c4e843 [commands] Fix typo on HelpFormatter.show_check_failure attribute. 2016-01-27 06:37:31 -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
a82176120c [commands] help command now uses the full name in the signature. 2016-01-17 17:17:30 -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