Rapptz
caf3d17d4a
Rework entire cog system and partially document it and extensions.
2019-02-23 04:10:10 -05:00
Rapptz
3f06f247c0
[commands] Fix up wording on HelpFormatter.get_ending_note
2019-02-18 16:29:58 -05:00
cod
262717c7d8
[commands] add document comment to HelpFormatter.get_ending_note
2019-02-19 00:27:05 +09:00
cod
ea0f1ee25f
[commands] Add more i18n properties for HelpFormatter
...
removed fixed strings "Commands:" and help page ending note.
and added properties modify these strings.
default behavior is not changed. fix #1886
2019-02-14 20:21:06 -05:00
cod
d107f485a5
[commands] Fix ext.commands help page full-width indentation
...
add _string_width function to util. Changed string width calculate
function from len() to util function _string_width().
2019-02-06 02:15:04 -05:00
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
Hornwitser
51d626eabe
[lint] Remove redundant paranthesis
...
Remove redundant parenthisis around await expressions. Left over from
f25091ef.
2018-11-24 22:17:58 -05:00
Hornwitser
d58fc0ccee
[lint] Remove unused imports
...
Left over from various refactoring and rewrites.
2018-08-22 21:43:50 -04:00
Michael H
39cb5f30b4
[commands] Handle nick mentions in HelpFormatter
...
Modifies the help formatter to handle nicknamed bot users for
mentions in clean_prefix
2018-08-22 21:06:09 -04:00
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
2018-06-10 18:10:00 -04:00
Tobotimus
3112e1c17e
Add intersphinx
2018-01-06 17:23:59 -05:00
Rapptz
b44bba6ee6
First pass at documentation reform.
2017-05-12 20:14:34 -04:00
Rapptz
3087600c8d
[commands] Add Command.signature
...
This replaces HelpFormatter.get_command_signature for the most part.
2017-03-21 00:46:13 -04:00
Rapptz
fe588a4d52
[commands] Change GroupMixin.commands to all_commands
...
This is a breaking change as GroupMixin.commands now returns a set
of unique Command objects.
2017-03-21 00:46:12 -04:00
Rapptz
c6d26216a6
[commands] Fix bad logic in command list filtering.
2017-02-18 02:39:03 -05:00
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