more advanced options for making twitter bots

twitter api overview:
https://dev.twitter.com/overview/api

 

where to generate your access tokens (will need a mobile phone number):
https://apps.twitter.com/

 

free phone number from google voice:
https://www.google.com/voice/

 

tutorials in python:
http://www.dototot.com/how-to-write-a-twitter-bot-with-python-and-tweepy/
How to create a basic Twitterbot in Python

 

api wrappers in python:
https://github.com/ryanmcgrath/twython
https://github.com/bear/python-twitter
https://github.com/tweepy/tweepy

 

tutorials in javascript (node.js):
http://www.apcoder.com/2013/10/03/twitter-bot-20-minutes-node-js/
http://www.bryanbraun.com/2014/12/13/how-to-set-up-a-simple-javascript-twitter-bot
http://markrabey.com/2014/05/09/build-a-twitter-bot-with-node-js/
Creating a basic Twitter bot in Node.js (using node-twitterbot)

 

node packages in javascript:
https://github.com/ttezel/twit
https://www.npmjs.com/package/node-twitterbot

 

example bots in javascript:
https://github.com/dariusk/examplebot

twitterbot (and other generative text) resources

Next class (Wednesday 9/16), we’ll be covering generative grammars, using a javascript library called Tracery. We’ll work on things together, but if anyone wants to look at resources ahead of time, they are available online (linked below). We’ll be integrating our grammars with Cheap Bots Done Quick, a twitterbot hosting service that uses Tracery. Everyone should be able to get a simple twitterbot running in class. Please take a look through other bots for inspiration, or just to get a good sense of what is possible.

 

Kate Compton’s Tracery

Tutorial; http://www.crystalcodepalace.com/traceryTut.html

Github (full documention); https://github.com/galaxykate/tracery

Visual editor; http://www.brightspiral.com/tracery/

 

George Buckenham’s Cheap Bots Done Quick

http://cheapbotsdonequick.com/

 

twitterbots!

https://twitter.com/godtributes
https://twitter.com/wikishoutouts
https://twitter.com/soft_focuses
https://twitter.com/lichmaze
https://twitter.com/TVCommentBot
https://twitter.com/Deer_ebooks
https://twitter.com/FFD8FFDB
https://twitter.com/CreatureList
https://twitter.com/reverseocr
https://twitter.com/ARealRiver
https://twitter.com/nice_tips_bot
https://twitter.com/artassignbot
https://twitter.com/park_your_car
https://twitter.com/GenerateACat
https://twitter.com/wikisext
https://twitter.com/everywitchword
https://twitter.com/TwoHeadlines
https://twitter.com/pentametron
https://twitter.com/oliviataters
https://twitter.com/MythologyBot
https://twitter.com/poem_exe
https://twitter.com/RestroomGender
https://twitter.com/digital_henge
https://twitter.com/Botgle
https://twitter.com/a_lovely_cloud
https://twitter.com/the_ephemerides
some twitterbots made with cheap bots done quick-

https://twitter.com/tranquilbot
https://twitter.com/memorypoem
https://twitter.com/infinitedeserts
https://twitter.com/unicode_garden
https://twitter.com/cryptbooks
https://twitter.com/CombinationBot
If you’re interested in this type of work, I’ve attached a zip file of some longer-form generated literature below- feel free to download and read through a few. The Policeman’s Beard is Half Constructed is particularly interesting, as it is very early (1984!). There are also several works from the annual NaNoGenMo (the generative answer to NaNoWriMo, where one writes a 50k word novel in November), and some chapbooks (including my own).

Zip file-  generated text (& friends)

Twine Example

Hello! Hope everyone’s work with their twine projects is going well. I made an example game with a few additional options that people were asking about in class on Wednesday.

This includes-

-Custom CSS for individual passages

-Images

-Audio playback across the whole story

-Additional scripts like timed passages

HOWEVER!

To use all of these features (except for custom CSS for tagged passages), you will need to use a story format that does not come installed with Twine 2. It is included in the ZIP file I’ve attached below- the file is called ‘format.js’. Installing it is pretty easy! On the home page of twine, you’ll click the menu item called ‘formats’ in the right-hand sidebar.

Screen Shot 2015-09-12 at 12.06.05 AM

Open it, and click ‘Add new format’

Screen Shot 2015-09-12 at 12.07.00 AM

Now, you’ll need to paste where the file is on your computer. If you are on a Mac (or Linux), the path will look something like this-

file:///Users/you/desktop/twine example/format.js

If you are on windows, it will look more like this-

file:///C:/Users/you/documents/twine example/format.js

But remember each path is specific to where it is on your machine! You can usually look at a file’s info to get its path. (If you have trouble with this, feel free to get in touch with me via email).

On Mac you can see the path of your file by right clicking and selecting get info (don't forget to add file:// at the beginning and format.js ad the end)
On Mac you can see the path of your file by right clicking and selecting get info (don’t forget to add file:// at the beginning and format.js ad the end). Twine may get stuck in loading state forever, but it should install the format correctly

That’s it! Now that your new story format is installed, it is available in a list of options when you change your story format. You’ll want to pick Sugarcube 2.

Screen Shot 2015-09-12 at 12.15.40 AM

You can now use advanced macros, music, and other neat things built into this story format. Full documentation is available here – or you can just download my example and play around with some options.

So go ahead-

Download a zip file containing a twine example using sugarcube and additional macros

And feel free to email me with any questions over the weekend- katierosepipkin @ gmail

twine resources!

get twine;
http://twinery.org/

games to play;
queers in love at the end of the world – anna antropy – http://auntiepixelante.com/endoftheworld/
the uncle who works at nintendo (tw) – michael lutz – http://jayisgames.com/games/the-uncle/
with those we love alive – porpentine, brenda neotenomie – http://aliendovecote.com/uploads/twine/empress/empress.html
daymare #1: ritual – kitty horrorshow – http://philome.la/kittyhorrorshow/daymare-1-ritual/play
horse master – tom mchenry – http://noncanon.com/HorseMaster.html
you will select a decision – brendan patrick hennessy – http://selectadecision.info
a kiss – dan waber – http://www.logolalia.com/hypertexts/a-kiss.html
ghost highland way – harry giles – http://harrygiles.org/portfolio/ghost-highland-way/
scarfmemory – michael brough – http://www.smestorp.com/scarfmemory.html
lights out please – many (compilation) – http://kait_zilla.itch.io/lights-out-please
even cowgirls bleed – christine love – http://scoutshonour.com/cowgirl/
hunting unicorn – chandler groover – http://cmg.itch.io/hunting-unicorn

compilation sites;
https://itch.io/games/tag-twine
http://www.philome.la/
http://twinegarden.tumblr.com/
http://forestambassador.com/ (not just twine)

free hosting for your twine game;
http://www.philome.la/
https://neocities.org/
https://itch.io/
http://textadventures.co.uk/
http://adventurecow.com/

sources, additional reading, and good places to start on your own;
http://www.auntiepixelante.com/twine/
http://www.gamasutra.com/blogs/DanCox/20130203/185939/Learning_Twine_Part_1.php
http://aliendovecote.com/resources/twine-snippets/
http://twinery.org/wiki/frequently_asked_questions
http://twinery.org/wiki/twine_reference
http://gamasutra.com/blogs/LizEngland/20150313/238709/What_is_Twine_For_Developers.php
http://www.instarbooks.com/books/videogames-for-humans.html