Skip to content

Instantly share code, notes, and snippets.

@jaybobo
Last active September 9, 2017 04:45
Show Gist options
  • Save jaybobo/bb4160e3d6534a187d30ba1592dc67ab to your computer and use it in GitHub Desktop.
Save jaybobo/bb4160e3d6534a187d30ba1592dc67ab to your computer and use it in GitHub Desktop.
Battle Bots Instruction

Battle bots

The goal of this session is to exercise our creativity while learning a bit about api's. We'll show what we've built at the end of our session.

1. Step One

Login to twitter and create a new app.

  • Fill out the application details: name, website, description
  • Set permissions for your application
  • Generate your key/secret and access token if needed (see the documentation of the library below to get an idea of what you may need)

2. Write some code

If you get stuck, feel free to ask another pair or flag me down. Make sure, your bot can do one simple task on Twitter before moving on to step 3 and adding functionality.

Bot Libraries

These libraries attempt to make creating a bot easy. If they do not have the functionality, you're looking for you may want to try a lower-level library like the ones below.
https://github.com/muffinista/chatterbot - ruby
https://github.com/nkirby/node-twitterbot - node

Lower Level Libraries

https://github.com/sferik/twitter - ruby
https://github.com/ttezel/twit - node
https://github.com/tweepy/tweepy - python

There's all types of amazing stuff you can do with Twitter bots.

  • latest songs from Soundcloud, Spotify
  • provide helpful tips & news (responds with weather, traffic or news depending on input)
  • entertainment, conversation
  • add a natural language interface with watson

Tutorials:

Here's a few if you need them. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment