Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 def __init__(self):
     self.bot = IRCBot(log_communication=True)
     self.bot.load_events(self)
Ejemplo n.º 3
0
 def __init__(self):
     # You can set log_communication to False to disable logging.
     self.bot = IRCBot(log_communication=True)
     self.bot.load_events(self)
Ejemplo n.º 4
0
 def create_bot(cls):
     bot = IRCBot()
     bot.delay_messages = False
     bot.delay_privmsgs = False
     return bot