コード例 #1
0
 def create_bot(self, protocol, username, password, server, port, channel):
     bot = Bot()
     bot.callback(self.receive)
     bot.new_connection(protocol,
                        username=username,
                        password=password,
                        server=server,
                        port=port,
                        channel=channel)
     self._bots[bot] = protocol
     return bot