Image 01 Image 02

XMPPpy

Posted on 8th June 2007 by Taggy
0

xmpppy is a wonderful little package to make Google chat bots or in general any jabber chat bot .Remember the conference bot posted earlier ?

lets see how we can actually login to our GTalk and send messages to our friends through xmpppy

first install xmpppy from its homepage.

python >> from xmpp inport *

>>c=Client('gmail.com')

>>c.connect(server=('talk.google.com',5223))

>>c.auth('yourusernamewithout"@gmail.com"','yourpassword')
>>c.send(Message('theyaga@gmail.com','Test message'))

quite simple isnt it ? .Iam working on making a simple conference bot and its not far from being finished :)

[tags]xmppy,google[/tags]



Leave a reply...






FireStats icon Powered by FireStats