aboutsummaryrefslogtreecommitdiff
path: root/modules/help.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-19 12:31:15 +0000
committerGravatar jesopo2019-11-19 12:31:15 +0000
commit2336695f4ea4a173a7472f63d6b6031ab753f1b7 (patch)
tree813b9fe84147fde89a17de44e025d7d191124a4a /modules/help.py
parent'event["comment"]' -> 'data["comment"]' (diff)
signature
boldify important parts in !help output
Diffstat (limited to 'modules/help.py')
-rw-r--r--modules/help.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/help.py b/modules/help.py
index c2bb0f12..58659d9d 100644
--- a/modules/help.py
+++ b/modules/help.py
@@ -44,11 +44,17 @@ class Module(ModuleManager.BaseModule):
else:
event["stderr"].write("No help for %s" % command)
else:
- event["stdout"].write("I'm %s. use '%smodules' to list modules, "
- "'%scommands <module>' to list commands and "
- "'%shelp <command>' to see help text for a command" %
- (IRCBot.URL, event["command_prefix"], event["command_prefix"],
- event["command_prefix"]))
+ modules_command = utils.irc.bold(
+ "%smodules" % event["command_prefix"])
+ commands_command = utils.irc.bold(
+ "%scommands <module>" % event["command_prefix"])
+ help_command = utils.irc.bold(
+ "%shelp <command>" % event["command_prefix"])
+
+ event["stdout"].write("I'm %s. use '%s' to list modules, "
+ "'%s' to list commands and "
+ "'%s' to see help text for a command" %
+ (IRCBot.URL, modules_command, commands_command, help_command))
def _all_command_hooks(self):
all_hooks = {}