fix formatting
parent
08a98febca
commit
dfd2cd76af
|
@ -203,8 +203,8 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
self.logger.debug('output action: {}'.format(msg))
|
self.logger.debug('output action: {}'.format(msg))
|
||||||
c.action(chan, msg)
|
c.action(chan, msg)
|
||||||
time.sleep(.5)
|
time.sleep(.5)
|
||||||
|
|
||||||
|
|
||||||
class TwitchBot(Bot):
|
class TwitchBot(Bot):
|
||||||
def __init__(self, nickname, channel, token, plugin_dir='plugins', log_level='info', ops=[]):
|
def __init__(self, nickname, channel, token, plugin_dir='plugins', log_level='info', ops=[]):
|
||||||
self.bot_nick = nickname
|
self.bot_nick = nickname
|
||||||
|
@ -217,7 +217,7 @@ class TwitchBot(Bot):
|
||||||
self.logger.info('Joining Twitch Server')
|
self.logger.info('Joining Twitch Server')
|
||||||
irc.bot.SingleServerIRCBot.__init__(self, [(server, port, 'oauth:'+token)], nickname, nickname)
|
irc.bot.SingleServerIRCBot.__init__(self, [(server, port, 'oauth:'+token)], nickname, nickname)
|
||||||
self.load_plugins()
|
self.load_plugins()
|
||||||
|
|
||||||
def on_welcome(self, c, e):
|
def on_welcome(self, c, e):
|
||||||
self.logger.info('requesting permissions')
|
self.logger.info('requesting permissions')
|
||||||
c.cap('REQ', ':twitch.tv/membership')
|
c.cap('REQ', ':twitch.tv/membership')
|
||||||
|
@ -225,3 +225,4 @@ class TwitchBot(Bot):
|
||||||
c.cap('REQ', ':twitch.tv/commands')
|
c.cap('REQ', ':twitch.tv/commands')
|
||||||
self.logger.info('Joining channel ' + self.channel)
|
self.logger.info('Joining channel ' + self.channel)
|
||||||
c.join(self.channel)
|
c.join(self.channel)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue