From cbc9550f97245ec95c6b34380a6ac2b4cf730254 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Wed, 18 Sep 2019 09:42:45 -0700 Subject: [PATCH] slow down help output --- pinhook/bot.py | 2 ++ pinhook/plugin.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index 3951b30..b18c73a 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -147,6 +147,8 @@ class Bot(irc.bot.SingleServerIRCBot): helpout = OrderedDict(sorted(cmds.items())) for h in helpout: self.connection.privmsg(nick, '{} -- {}'.format(h, helpout[h])) + time.sleep(.5) + self.connection.privmsg(nick, 'List of listeners: {}'.format(', '.join([l for l in plugin.lstnrs]))) return None def call_internal_commands(self, channel, nick, cmd, text, arg, c): diff --git a/pinhook/plugin.py b/pinhook/plugin.py index 23321b1..7ffb6fc 100644 --- a/pinhook/plugin.py +++ b/pinhook/plugin.py @@ -89,7 +89,6 @@ def _add_command(command, help_text, func): Command(command, help_text=help_text, run=func).add_command() else: cmds[command].update_plugin(help_text=help_text, run=func) - print(cmds) def _ops_plugin(command, ops_msg, func):