#!/usr/bin/python # -*- vim: encoding: utf-8 -*- # Yves Fischer, xapek.org 2009 import sys from twisted.words.protocols import oscar from twisted.internet import reactor, protocol from twisted.python import log from omegle.icqBuddy import ICQBuddy from icq import ReconnectingOSCARLoginFactory ICQ_UIN = '446323989' ICQ_PASSWORD = 'gagaga' ICQ_CHATROOM_UID = '370496181' class OmegleICQChatroomBuddy( ICQBuddy ): def initDone( self ): ICQBuddy.initDone(self) reactor.callLater(5.0, self.sendMessage,ICQ_CHATROOM_UID, "/join OMEGLE") def shutdown( self ): self.sendMessage(ICQ_CHATROOM_UID, "/leave") ICQBuddy.shutdown(self) if __name__ == '__main__': import logging logging.basicConfig(level=logging.INFO) log.startLogging(sys.stdout) factory = ReconnectingOSCARLoginFactory(ICQ_UIN,ICQ_PASSWORD) factory.BOSClass = OmegleICQChatroomBuddy reactor.connectTCP('login.icq.com', 5238, factory) reactor.run()