#!/usr/bin/python # -*- vim: encoding: utf-8 -*- import sys from twisted.words.protocols import oscar from twisted.internet import reactor, protocol from twisted.python import log from omegle.icqBuddy import OmegleICQ, OscarFactory ICQ_UIN = '446323989' ICQ_PASSWORD = 'gagaga' ICQ_CHATROOM_UID = '370496181' class OmegleICQChatroomBuddy( OmegleICQ ): def gotBuddyList( self, buddylist ): OmegleICQ.gotBuddyList( self, buddylist ) self.sendMessage(ICQ_CHATROOM_UID, "/join OMEGLE") def shutdown( self ): self.sendMessage(ICQ_CHATROOM_UID, "/leave") OmegleICQ.shutdown(self) class Authenticator( oscar.OscarAuthenticator ): BOSClass = OmegleICQChatroomBuddy class MyOscarFactory(OscarFactory): BOSClass = Authenticator if __name__ == '__main__': import logging logging.basicConfig(level=logging.INFO) log.startLogging(sys.stdout) reactor.connectTCP('login.icq.com', 5238, MyOscarFactory(ICQ_UIN,ICQ_PASSWORD,icq=1)) reactor.run()