Well, you found me. Congratulations. Was it worth it?
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
539 B

import socket
from threading import Thread
from irc import IRC
from v5 import V5
from secrets import USER, PASSWORD
class Bot(object):
def __init__(self, irc, v5, channels):
self.irc = IRC(*irc)
self.channels = channels
self.v5 = V5(v5, self.irc)
def start(self):
# Start IRC
self.irc.start(USER, PASSWORD)
# Join channels
for c in self.channels:
self.irc.join(c)
# Start v5 handler
self.v5.start()
# Run IRC
self.irc.run()