Building Twitter Bots in Node
Philip James
@phildini
Slide 2
Slide 2 text
Who’s this guy?
#nodetweets @phildini
Slide 3
Slide 3 text
Why should you build twitter bots?
@phildini
do I
#nodetweets
Slide 4
Slide 4 text
What does a twitter bot need?
@phildini
#nodetweets
• Some bit of code, for posting to twitter
• Write access to a twitter account
• A way to post responsively, or on a schedule
Slide 5
Slide 5 text
What are we going to do?
@phildini
#nodetweets
Slide 6
Slide 6 text
@phildini
#nodetweets
Get a word from the Wordnik API
Mix that word into a tweet
Post that tweet to twitter
Slide 7
Slide 7 text
Let’s start coding!
@phildini
#nodetweets
Slide 8
Slide 8 text
Let’s start coding!
@phildini
#nodetweets
Slide 9
Slide 9 text
We need a key!
@phildini
#nodetweets
https://www.wordnik.com
Slide 10
Slide 10 text
We need a key!
@phildini
#nodetweets
http://developer.wordnik.com/
Slide 11
Slide 11 text
We need a key!
@phildini
#nodetweets
https://www.wordnik.com/users/edit
Slide 12
Slide 12 text
We need a key!
@phildini
#nodetweets
permissions.js
Slide 13
Slide 13 text
Let’s start coding!
@phildini
#nodetweets
Slide 14
Slide 14 text
Add some twitter
@phildini
#nodetweets
Slide 15
Slide 15 text
Twitter doesn’t like
developers
@phildini
#nodetweets
bots
Slide 16
Slide 16 text
Add some twitter
@phildini
#nodetweets
Slide 17
Slide 17 text
Add some twitter
@phildini
#nodetweets
config.js
Slide 18
Slide 18 text
Add some twitter
@phildini
#nodetweets
Slide 19
Slide 19 text
Add some twitter
@phildini
#nodetweets
Slide 20
Slide 20 text
Make it Run
@phildini
#nodetweets
Slide 21
Slide 21 text
@phildini
#nodetweets
Slide 22
Slide 22 text
Where do we go from here?
@phildini
#nodetweets
Slide 23
Slide 23 text
Go Forth and Bot!
@phildini
#nodetweets
• Some bit of code, for posting to twitter
• Write access to a twitter account
• A way to post responsively, or on a schedule
Bots need:
Bots are:
• Fun
• Hopefully straightforward
• Art
Slide 24
Slide 24 text
The World Needs Your Twitterbot!
@phildini
#nodetweets
Slide 25
Slide 25 text
Credits
@phildini
#nodetweets
Erin McKean (@emckean)
Darius Kazemi (@tinysubversions)
Slide 26
Slide 26 text
I gave this talk - you can too!
#nodetweets @phildini