blob: 63689f10ce8cb3b0c2ee776c403fe0205607067a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/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 OmegleICQ
from icq import ReconnectOscarFactory
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)
if __name__ == '__main__':
import logging
logging.basicConfig(level=logging.INFO)
log.startLogging(sys.stdout)
factory = ReconnectOscarFactory(OmegleICQChatroomBuddy, ICQ_UIN,ICQ_PASSWORD,icq=1)
reactor.connectTCP('login.icq.com', 5238, factory)
reactor.run()
|