{"id":1703,"date":"2008-04-14T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=1703"},"modified":"2018-09-22T07:48:21","modified_gmt":"2018-09-22T06:48:21","slug":"obliquetweet-my-first-twitterbot","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/obliquetweet-my-first-twitterbot\/","title":{"rendered":"ObliqueTweet, my first twitterbot"},"content":{"rendered":"<p><strong>Warning, little educational content ahead, this is a holiday post.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8002\" data-permalink=\"https:\/\/johnjohnston.info\/blog\/obliquetweet-my-first-twitterbot\/obliquetweet\/\" data-orig-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2008\/04\/obliquetweet.jpg\" data-orig-size=\"460,140\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"obliquetweet\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2008\/04\/obliquetweet.jpg\" class=\"aligncenter size-full wp-image-8002\" src=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2008\/04\/obliquetweet.jpg\" alt=\"\" width=\"460\" height=\"140\" \/><\/p>\n<p>I&#8217;ve been messing around a wee bit with the twitter api, <a href=\"http:\/\/johnjohnston.name\/tw\/\">twitter tester<\/a>, <a href=\"http:\/\/johnjohnston.name\/teachmeetperth.php\">Tweets to TeachMeetPerth<\/a> and <a href=\"http:\/\/johnjohnston.name\/tw\/present.php\">twitter presenter<\/a>, the last in response to <a href=\"http:\/\/twitter.com\/ewanmcintosh\/statuses\/787083310\">Ewan&#8217;s tweet: Can one present by Twit?<\/a>.<\/p>\n<p>None of these are what could be called polished jobs even given my limitations but the <a href=\"http:\/\/groups.google.com\/group\/twitter-development-talk\/web\/api-documentation\">TwitterApi Documentation<\/a> is pretty straightforward.<\/p>\n<p>I have also <em>created<\/em> a few of rss twitter bots the most useful of which is <a href=\"http:\/\/twitter.com\/scotedublogs\">ScotEduBlogs<\/a> which tweets the blogs post title as they arrive on <a href=\"http:\/\/www.scotedublogs.org.uk\">ScotEduBlogs<\/a> this uses the <a href=\"http:\/\/twitterfeed.com\/\">twitterfeed.com : feed your blog to twitter &#8211; post RSS to twitter automatically<\/a> I think.<\/p>\n<p><img decoding=\"async\" style=\"float: left; margin: 4px;\" src=\"https:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/52769215\/obliquetweet_bigger.png\" \/>So it seems time for my first twitterbot <a title=\"Twitter \/ ObliqueTweet\" href=\"http:\/\/twitter.com\/ObliqueTweet\">ObliqueTweet<\/a>, tweet anything @<a title=\"Twitter \/ ObliqueTweet\" href=\"http:\/\/twitter.com\/ObliqueTweet\">ObliqueTweet<\/a> and it will reply with a random <a title=\"Oblique Strategies - Wikipedia, the free encyclopedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Oblique_Strategies\">Oblique Strategy<\/a> (currently the 4th edition).<\/p>\n<p style=\"font-size: 11px; ;margin: 2px; background: #E6E6E6; padding: 2px;\">The Oblique Strategies are a set of cards devised by Brian Eno and artist <a href=\"http:\/\/en.wikipedia.org\/wiki\/Peter_Schmidt_%28artist%29\">Peter Schmidt<\/a> to solve (artistic) problems by drawing a card randomly. There is a lot of information at <a href=\"http:\/\/www.rtqe.net\/ObliqueStrategies\/\">The Oblique Strategies<\/a>. There have been a number of computer programs to show Strategies at random, web and download versions. (I even made a supercard project back in 2002). There is a nice php version, <a href=\"http:\/\/minimaldesign.net\/downloads\/projects\/oblique-strategies\">minimal design | Oblique Strategies<\/a>, which you can download.<\/p>\n<p>The <a title=\"Twitter \/ ObliqueTweet\" href=\"http:\/\/twitter.com\/ObliqueTweet\">ObliqueTweet<\/a> twitterbot, just grabs the most recent @ replies to ObliqueTweet and then grabs a random Oblique Strategies and sends it back as a reply.<\/p>\n<p>The script is automatically run using <a title=\"Hosted Cron (Cron Hosting) - webbasedcron.com\" href=\"http:\/\/www.webbasedcron.com\/\">http:\/\/www.webbasedcron.com<\/a> once every minute.<\/p>\n<p>I am wondering now if I can think of a <i>useful<\/i> twitterbot, any ideas?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning, little educational content ahead, this is a holiday post. I&#8217;ve been messing around a wee bit with the twitter api, twitter tester, Tweets to TeachMeetPerth and twitter presenter, the last in response to Ewan&#8217;s tweet: Can one present by Twit?. None of these are what could be called polished jobs even given my limitations [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[91,80,154,26,260],"post_format":[],"class_list":{"0":"post-1703","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-api","8":"tag-fun","9":"tag-mashup","10":"tag-twitter","11":"tag-twitterapi","12":"kind-article","14":"h-entry","15":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-rt","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/1703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=1703"}],"version-history":[{"count":1,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/1703\/revisions"}],"predecessor-version":[{"id":8003,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/1703\/revisions\/8003"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=1703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=1703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=1703"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=1703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}