From 63ce7ea4074c079e84b8f47164e5122a7d6485b3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 10 Jul 2017 22:12:53 -0700 Subject: [PATCH] ServiceBot: tweak display format for command aliases Specifically: bold the command lists, add a space before, and be more specific with "alias for X". --- utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 2646ea8..245f6b9 100644 --- a/utils.py +++ b/utils.py @@ -430,10 +430,12 @@ class ServiceBot(): # Regardless of whether help text is available, mention aliases. if not shortform: if command in self.alias_cmds: - _reply('Alias for %s.' % self.alias_cmds[command]) + _reply(' ') + _reply('This command is an alias for \x02%s\x02.' % self.alias_cmds[command]) aliases = set(alias for alias, primary in self.alias_cmds.items() if primary == command) if aliases: - _reply('Available aliases: %s' % ', '.join(aliases)) + _reply(' ') + _reply('Available aliases: \x02%s\x02' % ', '.join(aliases)) def help(self, irc, source, args): """