twitter-bot-playground icon indicating copy to clipboard operation
twitter-bot-playground copied to clipboard

Want to build your own twitter bot :hatching_chick: check out the documentation.

Twitter bot playground

Greenkeeper badge license Chat

This is a reference for me and anyone else that's interested in Twitter bots in JavaScript.

All of the examples here use the npm package twit.

We'll go through setting up a simple bot so each of these examples can be run with it.

I'm going to assume that you have nodejs installed along with npm and that you are comfortable with the terminal.

If you are not familiar node or do not have your environment set up to use it take a look at the README.md on my Twitter bot bootstrap repo which details getting a Twitter application set up and a development environment with c9.

A great resource is Aman Mittal's Awesome Twitter bots repo which has resources and bot examples.

A lot of this information is already out there I'm hoping this is all the information someone will need to get started with their own Twitter bot. I'm doing this for my own learning and hopefully other people will get something out of this as well.

Contents

  • 00 Set up the bot

  • 01 Post statuses

  • 02 Work with users

  • 03 Interact with tweets

  • 04 Use Twitter search

  • 05 Use Twitter stream API

  • 06 Tweet media files

  • 07 Make a Markov bot

  • 08 Tweet data from Google sheets

  • 09 Putting it all together

  • 10 Deploy to now


Contributing

License