]> jfr.im git - erebus.git/blobdiff - modules/help.py
urls - massive rework
[erebus.git] / modules / help.py
index 8e13a2b6241289811a56e2f547e067c62db08c2a..74def560a0efe570b57d952052fbb8afa651b6c2 100644 (file)
@@ -19,7 +19,7 @@ def modstart(parent, *args, **kwargs):
        if parent.cfg.getboolean('erebus', 'nofakelag'):
                lib.hook('help', needchan=False)(lib.help('[@<module>|<command>]', 'lists commands or describes a command', 'with @<module>, lists all commands in <module>')(help_nolag))
        else:
-               lib.hook('help', needchan=False)(lib.help("<command>", "describes a command")(help))
+               lib.hook('help', needchan=False)(lib.help("<command>", "describes a command", "see also: showcommands")(help))
        return lib.modstart(parent, *args, **kwargs)
 modstop = lib.modstop
 
@@ -136,7 +136,7 @@ def _genhelp(bot, user, chan, realtarget, *args):
        return True
 
 @lib.hook(glevel=1, needchan=False)
-@lib.help("[@<module>] [#<exact_level>] [+<max_level>] [-<min_level>] [./<filename>]", "generates help file", "arguments are all optional and may be specified in any order", "default file: ./help/<module><level>.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("[@<module>] [#<exact_level>] [+<max_level>] [-<min_level>] [./<filename>]", "generates help file", "arguments are all optional and may be specified in any order", "default file: ./<module><level>.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)