def __init__(self, nick, channel): self.bot = IRCBot(log_communication=True) self.bot.load_events(self) self.commands = dict() self.load_commands() self.nick = nick self.channel = channel self.game = Game(interface=self)
def __init__(self): self.bot = IRCBot(log_communication=True) self.bot.load_events(self)
def __init__(self): # You can set log_communication to False to disable logging. self.bot = IRCBot(log_communication=True) self.bot.load_events(self)
def create_bot(cls): bot = IRCBot() bot.delay_messages = False bot.delay_privmsgs = False return bot