{"id":1459,"date":"2015-05-09T06:00:09","date_gmt":"2015-05-09T06:00:09","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1459"},"modified":"2018-09-04T17:06:05","modified_gmt":"2018-09-04T17:06:05","slug":"bots","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1459","title":{"rendered":"Bots"},"content":{"rendered":"<div>Non-working bot:\u00a0@cipherscyther<\/div>\n<div><\/div>\n<div>After I left class I was unsatisfied with my concept of a quote mashup bot, since it didn&#8217;t touch on any social issues or frameworks. \u00a0My second version was intended to be a twitter bot that plays with the geolocation function of posting statuses. \u00a0It was intended to tweet,\u00a0asking if one location knows anything occurring in another location. \u00a0It is partially functional, the only issue is that oceans do not return &#8216;place_ids&#8217; that twitter recognizes, and my random geo function is not constrained to solid ground, so most calls to twitters reverse geo function return errors and the tweet can&#8217;t be made.<\/div>\n<div>I then shifted to a bot focusing around encryption, offering a way to cipher tweets for users. \u00a0After coding the basic substitution cipher function and its reverse, I thought of how to generate and share the passphrase. \u00a0I had happened upon the name cipher scyther, since they sound so similar, and the name ended up giving me a great idea for the passcodes. \u00a0Stronger passcodes are obscure, but the recipient still needs to be sure they have the right phrase. \u00a0Scyther is a pokemon, and while they are very popular with some people, the names of the pokemon are often obscure knowledge. \u00a0So I\u00a0decided to have the passphrase for the cipher to be the name of one of the 151 original pokemon. \u00a0And in order to send the passphrase along with the ciphered message, the bot would post an image of the pokemon used in the cipher. \u00a0I thought it was somewhat along the lines of Maddy Varner&#8217;s way of encrypting messages in images of Kim Kardashian, although much less complex. \u00a0Similar to that project, I\u00a0was hoping to draw attention some\u00a0to cryptography through pop culture.<\/div>\n<div><\/div>\n<div>The bot itself can encipher and decipher text, and link that text with the image of the pokemon that is its passphrase. \u00a0It does not however tweet anything. \u00a0I had alot of trouble getting the JSON returns broken down into something I could use, and I also had some issues with the way twitter works. \u00a0I didn&#8217;t want people tweeting the message they wanted encrypted to the bot, because that defeats the purpose of altering the message since its already out in public. \u00a0And in order for the bot to receive a private message it has to be following the sender. \u00a0I wasn&#8217;t sure of how to get that automated, or how to get the user to initiate that so it is currently not implemented.<\/div>\n<div><\/div>\n<div>So the bot doesn&#8217;t work as a bot. \u00a0If you run the cipher.js it will encipher and\u00a0decipher\u00a0a sample message\u00a0and show the relevant image. \u00a0I thought that for my final programming project in school I should get into it, but I don&#8217;t have enough java experience to get it to work in the time I\u00a0have left.<\/div>\n<div><iframe src=\"\/\/docs.google.com\/viewer?url=https%3A%2F%2Fwww.courses.tegabrain.com%2FSS15%2Fwp-content%2Fuploads%2F2015%2F05%2Fgeobot.rar&hl=en_US&embedded=true\" class=\"gde-frame\" style=\"width:100%; height:500px; border: none;\" scrolling=\"no\"><\/iframe>\n<\/div>\n<div><iframe src=\"\/\/docs.google.com\/viewer?url=https%3A%2F%2Fwww.courses.tegabrain.com%2FSS15%2Fwp-content%2Fuploads%2F2015%2F05%2Fcipherbot.rar&hl=en_US&embedded=true\" class=\"gde-frame\" style=\"width:100%; height:500px; border: none;\" scrolling=\"no\"><\/iframe>\n<\/div>\n<div>(I hope nobody abuses the bots that have my config files in them, but I really don&#8217;t have an issue with getting that account disabled)<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Non-working bot:\u00a0@cipherscyther After I left class I was unsatisfied with my concept of a quote mashup bot, since it didn&#8217;t touch on any social issues or frameworks. \u00a0My second version was intended to be a twitter bot that plays with the geolocation function of posting statuses. \u00a0It was intended to tweet,\u00a0asking if one location knows [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1459"}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1459"}],"version-history":[{"count":1,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1459\/revisions"}],"predecessor-version":[{"id":1462,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1459\/revisions\/1462"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}