Skip to content

FunRobots/candybot_v1

Repository files navigation

#CandyBot

##About Candybot is a simple bot that gives a candy for social actions. Run from a Raspberry Pi.

Current version: v0.2

##Changelog: v0.2 - Add Twitter Stream API to listen tweets, remove button (started twitter api request to check bot mentions in tweets). It works faster and overcome api time rate limit.

v0.1 - First prototype. But listen whether his name is mentined in Twitter, as well as a secret code he give to a User. If user tweet a message with @fun_robots and some secret code, he will get a candy. Just simple, just fun

##Instructions for makers


  1. Setup your RaspberryPi with python environment
  1. Setup config for Twitter Workapble packages: python-twitter (or twython, tweepy)

  2. Clone git repository

  3. Create file secret.py and add the following strings (don't forget to put real credentials there):

    TW_CONSUMER_KEY='put_your_consumer_key_here' TW_CONSUMER_SECRET='put_your_consumer_secret_here' TW_ACCESS_TOKEN_KEY='put_your__access_token_key_here' TW_ACCESS_TOKEN_SECRET='put_your_access_token_secret_here'

  4. Run sudo python candybot.py

##References for examples and tips


Using Twitter Stream API

About

Simple CandyBot with Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages