Having fun with jabber bots

67 %
33 %
Information about Having fun with jabber bots
Technology

Published on July 18, 2010

Author: victorhg

Source: slideshare.net

Description

Victor's presentation about xmpp and Jabber bots at Pycon Ireland 2010

Imagine the possibility of creating a real time channel, capable of notifying and interact, using a simple instant messaging application. Integrating such tool on your application could bring real value to you and customers. The main focus of this presentation is to show an easy way to create and use computer bots through the Python language, suggesting useful applications, and bring together some advanced considerations about security and natural language processing.

Learn how to create a bot using jabberBot (5 minute tutorial):
basics
testing
live example
How to make it useful?
Real time notification system
Integration with Yahoo, Exchange APIs
System administration
Getting serious

Alternative libraries
Language Processing

Having Fun with Jabber Bots Victor Hugo Germano

Why Jabber Bots? What kinda a crazy am I?

It’s Fun! http://www.flickr.com/photos/sleepallday/3311794264/

Maybe a glimpse of the future? http://www.flickr.com/photos/dancoulter/21042744/

Dynamic web Is not enough!

Tired of Ctrl+R and F5 http://www.flickr.com/photos/disaster_area/3454110496/

We want websites like this!

But during the game... Real time streamming... for sure!

FLASH

Would FLASH be the answer?

No! At least is what most companies are saying

“Big” Problem How to create a chat room? Or a chess game?

Because Latency Matters Specially when developing and application

client server Traditional Polling Often Problematic

? Any other options?

Extensive Messaging and Presence Protocol Event-Driven XML oriented

Stanzas Presence <presence from="victorhg@im.net/home">   <status>at #pyconIreland o/</status> </presence>

Stanzas Message <message to="mary@im.net/work"      from="victorhg@im.net/home"      type="chat" >     <body>How u doing? ;) </body> </message>

Stanzas IQ (Info Query) <iq type="get" id="an_id"      from="victorhg@im.net/casa"      to="im.net">     <query xmlns="jabber:iq:roster"/> </iq>

client server Long Polling

Jabber.org

But XML sucks! xmppPy is your friend!

xmppPy conn = xmpp.Client(‘gmail.com’) conn.connect([server, port]) conn.auth(user, pwd) conn.send(Message( "email@gmail.com","hello!")) conn.disconnect()

First Example Using GTalkBot http://github.com/victorhg/botnet/blob/master/botnet/gtalkbot.py

mybot.py from gtalkbot import GTalkBot, botcommand class MyBot(GTalkBot): def __init__(self): super(MyBot,self).__init__('USER_ID','PWD') @botcommand def hello(self, mess, args): return “Hello World!” MyBot().run_client() http://github.com/victorhg/botnet/blob/master/botnet/gtalkbot.py

$> python mybot.py

How about a real bot? Enough with the hello_world

Demo Add a contact on your GTalk account pycon.bot@gmail.com

Having fun! Show me the code!

How can you use it? http://www.flickr.com/photos/flysi/183272970/

Real Time Web? Powered by XMPP

BOSH Bidirectional-streams Over Synchronous HTTP

Strophe.js When XMPP hits the web http://code.stanziq.com/strophe/

Strophe.js // Connecting var conn = new Strophe.Connection(URL) conn.connect( jid, password, callback ); // Creating stanzas var stanza = new Strophe.Builder( “message”, { “to”: “john@jabber.org”, type:”chat” } );

Who uses XMPP on the web?

References http://xmpp.org/ http://xmpppy.sourceforge.net/ http://thpinfo.com/2007/python-jabberbot/ http://xmpppy-guide.berlios.de/ http://code.stanziq.com/strophe/ Real Time Web with XMPP @ InfoQ

Thank you! twitter.com/victorhg google.com/profiles/victorhg Use it! Share it! Remix it!

Add a comment

Comments

buy cheap rs gold | 28/12/14
Omg, It's a good post! Like you, Thanks! Excuse me, Please look at my username! Buying runescape million. buy cheap rs gold http://www.rs4golds.com/
buy cheap rs gold | 29/12/14
Oh, That's a good post! Love you, Thanks! Excuse me, Please look at my username! Buying runescape million. buy cheap rs gold http://www.rs4golds.com/
world of warcraft gold | 29/12/14
hello cheap wow items world of warcraft gold http://www.wow345.com/
buy runescape million | 31/12/14
hello, That's a nice post! Excuse me, Please look at my username! Buying runescape million. buy runescape million http://www.rs4golds.com/
best place for rs gold | 03/01/15
lol, It's a nice post! Love you, Thank you! Excuse me, Please look at my username! Buying runescape million. best place for rs gold http://www.rs4golds.com/

Related presentations

Related pages

Is Jabber's Chatbot the Command Line of the Future? - O ...

Is Jabber's Chatbot the Command Line of the Future? ... Having conversations. In ... Here you can define various aspects of the bot's behavior: which ...
Read more

Having Fun with Bots - YouTube

Having Fun with Bots DK SIDE. Subscribe Subscribed Unsubscribe 1 1. ... Lineage 2 Having fun killing bots ~ - Duration: 8:45. xHaseo 814 views. 8:45
Read more

Having Fun With Bots!! - YouTube

Subscribe for more Videos! http://bit.ly/1MrhoYM Snapchat:SpazziSnaps My Twitter - http://bit.ly/1KmfO3J My Livestreams -http://bit.ly ...
Read more

Jabber | LinkedIn

Having fun with jabber bots. 9,317 Views. jabborate. Jabber integration with SAP. 127,893 Views. jabborate. Jabber integration IBM Notes. 68,363 Views ...
Read more

A Simple Python Jabber Bot · More than seven

A Simple Python Jabber Bot ... xmppy and XMPP4R-Simple libraries I’ve been having lots of fun with the JabberBot ... the name of the method bot_time ...
Read more

Jabber, XMPP & Chatbots | Meta-Guide.com

Jabber, XMPP & Chatbots. Browse: Home / Bots, Agents & Assistants / Open Chatbot Standards / Jabber, XMPP & Chatbots. ... Having fun with Jabber Bots (2010) ..
Read more

jabberwacky chat - Are you having fun or what? - Are you ...

Are you having fun or what? Are you in a good mood? reaction ... Your bot: About Jabberwacky: Instructions: User Feedback: Look who's talking! News, Press ...
Read more

jabberwacky chat - What are you thinking about? - Having ...

jabberwacky chat - What are you thinking about? - Having fun without you. ... Your bot: About Jabberwacky: Instructions: User Feedback: Look who's talking!
Read more

A Maldita Comédia

Saudações!

Bem, ontem foi a minha apresentacao sobre xmpp e jabber no evento Pycon Ireland 2010 ...
Read more