X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/caa333c30efb9a405e64766460aee88edcb089bf..467acacf99ab52ad53af0fc9e95b5be4ca304ea8:/modules/help.py diff --git a/modules/help.py b/modules/help.py index bb5c94b..74def56 100644 --- a/modules/help.py +++ b/modules/help.py @@ -1,4 +1,5 @@ # Erebus IRC bot - Author: Erebus Team +# vim: fileencoding=utf-8 # help module # This file is released into the public domain; see http://unlicense.org/ @@ -18,7 +19,7 @@ def modstart(parent, *args, **kwargs): if parent.cfg.getboolean('erebus', 'nofakelag'): lib.hook('help', needchan=False)(lib.help('[@|]', 'lists commands or describes a command', 'with @, lists all commands in ')(help_nolag)) else: - lib.hook('help', needchan=False)(lib.help("", "describes a command")(help)) + lib.hook('help', needchan=False)(lib.help("", "describes a command", "see also: showcommands")(help)) return lib.modstart(parent, *args, **kwargs) modstop = lib.modstop @@ -135,7 +136,7 @@ def _genhelp(bot, user, chan, realtarget, *args): return True @lib.hook(glevel=1, needchan=False) -@lib.help("[@] [#] [+] [-] [./]", "generates help file", "arguments are all optional and may be specified in any order", "default file: ./help/.txt, with module blank if not supplied", "filename can also contain %(@)s, %(#)s, %(+)s, %(-)s", "for module, current (single) level, max and min level, respectively") +@lib.help("[@] [#] [+] [-] [./]", "generates help file", "arguments are all optional and may be specified in any order", "default file: ./.txt, with module blank if not supplied. will always be under help/", "filename can also contain %(@)s, %(#)s, %(+)s, %(-)s", "for module, current (single) level, max and min level, respectively") def genhelp(bot, user, chan, realtarget, *args): try: _genhelp(bot, user, chan, realtarget, *args)