Пример #1
0
 def setUp(self):
     super(BotTestCases, self).setUp()
     self.bot = IOBot(
                 nick = 'testie',
                 host = 'localhost',
                 port = 6667,
                 )
     assert self.bot._stream.write.called
Пример #2
0
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()