Twitter Bots

8,543 views

Published on

Published in: Technology, Sports
2 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total views
8,543
On SlideShare
0
From Embeds
0
Number of Embeds
382
Actions
Shares
0
Downloads
57
Comments
2
Likes
3
Embeds 0
No embeds

No notes for slide
  • Twitter Bots

    1. Twitter Bots what they are and how to make them Neil Crosby - twitbot.com
    2. What’s Twitter? <ul><li>You all know already. </li></ul><ul><li>But if you don’t… </li></ul><ul><li>SMS length mini updates of your life. </li></ul>
    3. What’s a Bot? <ul><li>Automated process that responds to user input. </li></ul>
    4. Twitter API <ul><li>I’ve created an encapsulation in PHP. </li></ul><ul><li>This makes things easy. </li></ul><ul><ul><li>$api = new Twitter($uname, $pword); </li></ul></ul><ul><ul><li>$messages = $api->directMessages->direct_messages(); </li></ul></ul><ul><ul><li>$api->status->update( ”tweet tweet&quot; ); </li></ul></ul><ul><ul><li>$followers = $api->user->followers(); </li></ul></ul>
    5. Examples of Twitter Bots RSS Channel Werewolf Web Service “Friendly”
    6. RSS Bot <ul><li>Tell it to watch an RSS feed. </li></ul><ul><li>Whenever the feed is updated, it tweets. </li></ul><ul><li>E.g. TenWordReview, ttwr </li></ul>
    7. Channel Bot <ul><li>Bot echos any direct messages out to the public timeline. </li></ul><ul><li>Only people following the bot see these messages. </li></ul><ul><li>Thus, we achieve channels in Twitter. </li></ul><ul><li>E.g. yahoofood </li></ul>
    8. Werewolf Bot <ul><li>Written for yesterday </li></ul><ul><li>“ d werebot wwwhs cbetta fatbusinessman mseckington cazm cubicgarden ginader niqui phae aral SteveMarshall cackhanded” </li></ul><ul><li>w erewolf, h ealer, s eer </li></ul><ul><li>Direct messages each player to tell them what they are. No cards required. </li></ul><ul><li>E.g. werebot </li></ul>
    9. Web Service Bot <ul><li>More complicated (but still not very). </li></ul><ul><ul><li>Takes input from user. </li></ul></ul><ul><ul><li>Passes input to web service. </li></ul></ul><ul><ul><li>Direct messages user with result of web service call. </li></ul></ul><ul><li>No working example yet (ttwr soon). </li></ul>
    10. “ Friendly” Bot <ul><li>Keeps track of who’s following him and then friends them. </li></ul><ul><li>Vital for easy management of channel, werewolf and web service bots. </li></ul><ul><li>Currently unimplemented (oh noes). </li></ul>
    11. Where’s the Automated? <ul><li>Cron job! </li></ul>
    12. Here’s the Code! <ul><li>http: //twitbot .com/download </li></ul>
    13. Rettribution <ul><li>http://www.flickr.com/photos/dcharti/2233111820/ </li></ul><ul><li>http://www.flickr.com/photos/ferricide/1789375804/ </li></ul><ul><li>http://www.flickr.com/photos/ezu/277341190/ </li></ul><ul><li>http://www.flickr.com/photos/19516393@N00/308200734/ </li></ul><ul><li>http://www.flickr.com/photos/davidex/2091970568/ </li></ul><ul><li>http://www.flickr.com/photos/striatic/1276092/ </li></ul><ul><li>http://www.flickr.com/photos/stinkypeter/157437582/ </li></ul><ul><li>http://www.flickr.com/photos/kamil/711847556/ </li></ul><ul><li>http://www.flickr.com/photos/moonpiesformisfits/263550936/ </li></ul><ul><li>http://www.flickr.com/photos/scazzophoto/40552349/ </li></ul><ul><li>http://www.flickr.com/photos/nez/378349478/ </li></ul>

    ×