fix formatting

pull/29/head
Mallory Hancock 2018-04-10 09:54:49 -07:00
parent 08a98febca
commit dfd2cd76af
1 changed files with 4 additions and 3 deletions

View File

@ -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)