boldify important parts in !help output

This commit is contained in:
jesopo 2019-11-19 12:31:15 +00:00
parent 502dae0d75
commit 2336695f4e

View file

@ -44,11 +44,17 @@ class Module(ModuleManager.BaseModule):
else: else:
event["stderr"].write("No help for %s" % command) event["stderr"].write("No help for %s" % command)
else: else:
event["stdout"].write("I'm %s. use '%smodules' to list modules, " modules_command = utils.irc.bold(
"'%scommands <module>' to list commands and " "%smodules" % event["command_prefix"])
"'%shelp <command>' to see help text for a command" % commands_command = utils.irc.bold(
(IRCBot.URL, event["command_prefix"], event["command_prefix"], "%scommands <module>" % event["command_prefix"])
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): def _all_command_hooks(self):
all_hooks = {} all_hooks = {}