Building Twitter Bots in Node -...

Post on 31-Jul-2020

8 views 0 download

Transcript of Building Twitter Bots in Node -...

Building Twitter Bots in NodePhilip James@phildini

Who’s this guy?

#nodetweets @phildini

Why should you build twitter bots?

@phildini

do I

#nodetweets

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

What are we going to do?

@phildini#nodetweets

@phildini#nodetweets

Get a word from the Wordnik API

Mix that word into a tweet

Post that tweet to twitter

Let’s start coding!

@phildini#nodetweets

Let’s start coding!

@phildini#nodetweets

We need a key!

@phildini#nodetweets

https://www.wordnik.com

We need a key!

@phildini#nodetweets

http://developer.wordnik.com/

We need a key!

@phildini#nodetweets

https://www.wordnik.com/users/edit

We need a key!

@phildini#nodetweets

permissions.js

Let’s start coding!

@phildini#nodetweets

Add some twitter

@phildini#nodetweets

Twitter doesn’t like developers

@phildini#nodetweets

bots

Add some twitter

@phildini#nodetweets

Add some twitter

@phildini#nodetweets

config.js

Add some twitter

@phildini#nodetweets

Add some twitter

@phildini#nodetweets

Make it Run

@phildini#nodetweets

@phildini#nodetweets

Where do we go from here?

@phildini#nodetweets

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

The World Needs Your Twitterbot!

@phildini#nodetweets

Credits

@phildini#nodetweets

Erin McKean (@emckean)

Darius Kazemi (@tinysubversions)

I gave this talk - you can too!

#nodetweets @phildini

Thanks! Questions?

@phildini#nodetweets