def setUp(self): super(BotTestCases, self).setUp() self.bot = IOBot( nick = 'testie', host = 'localhost', port = 6667, ) assert self.bot._stream.write.called
def main(): ib = IOBot( host = 'senor.crunchybueno.com', nick = 'iono', char = '#', owner = 'norf', port = 6667, initial_chans = ['#norf'], ) ib.register(['echo','stock']) IOLoop.instance().start()