From dfd2cd76af6672ec50ab01c3de8e1ba921df1c15 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 10 Apr 2018 09:54:49 -0700 Subject: [PATCH] fix formatting --- pinhook/bot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index 771b753..75afcc6 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -203,8 +203,8 @@ class Bot(irc.bot.SingleServerIRCBot): self.logger.debug('output action: {}'.format(msg)) c.action(chan, msg) time.sleep(.5) - - + + class TwitchBot(Bot): def __init__(self, nickname, channel, token, plugin_dir='plugins', log_level='info', ops=[]): self.bot_nick = nickname @@ -217,7 +217,7 @@ class TwitchBot(Bot): self.logger.info('Joining Twitch Server') irc.bot.SingleServerIRCBot.__init__(self, [(server, port, 'oauth:'+token)], nickname, nickname) self.load_plugins() - + def on_welcome(self, c, e): self.logger.info('requesting permissions') c.cap('REQ', ':twitch.tv/membership') @@ -225,3 +225,4 @@ class TwitchBot(Bot): c.cap('REQ', ':twitch.tv/commands') self.logger.info('Joining channel ' + self.channel) c.join(self.channel) +