https://github.com/bermannoah/twitter-bot-skeleton
Basic framework for a simple little twitter bot
https://github.com/bermannoah/twitter-bot-skeleton
bot ruby twitter twitter-bot
Last synced: 6 days ago
JSON representation
Basic framework for a simple little twitter bot
- Host: GitHub
- URL: https://github.com/bermannoah/twitter-bot-skeleton
- Owner: bermannoah
- License: mit
- Created: 2017-03-09T17:19:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T17:19:35.000Z (over 9 years ago)
- Last Synced: 2025-02-26T15:16:47.101Z (over 1 year ago)
- Topics: bot, ruby, twitter, twitter-bot
- Language: Ruby
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Twitter Bot Skeleton
A basic framework for making a twitter bot. This is 'just' a script, meaning
that you'll have to manually run it.
### Useful information
[The docs for the twitter gem - extensive](http://www.rubydoc.info/gems/twitter)
[The docs for the twitter gem - basic](https://github.com/sferik/twitter)
### Requirements
You will need:
1. A twitter account. Make sure you have your phone number connected to the account
2. RVM installed. To find out if you have this, run: `rvm -v`. If you don't have it, follow the RVM instructions and ONLY the RVM instructions at [Railsbridge](http://curriculum.railsbridge.org/installfest/osx_rvm).
### Installation
1. Clone down this repo: `git clone https://github.com/bermannoah/twitter-bot-skeleton`
2. Install the twitter gem: `gem install twitter`
3. Go to [the Twitter developer pages](https://dev.twitter.com/)
4. Click on "my apps"
5. Click on "Create New App"
6. Give your app a name and description. If you have a website, list it, otherwise: https://www.example.com. You won't need a callback URL for this project.
7. Agree to the developer agreement and create the app.
8. On the next page, click on permissions and make sure "Read and Write" is selected.
9. Click on "Keys and Access Tokens", then "Create my access token."
10. DO NOT COMMIT ANY OF THE CONTENT ON THIS PAGE TO GITHUB.
11. Create a file called twitter_keys.rb (`touch twitter_keys.rb`) inside this directory and then put the following block inside it, completing each line with the relevant info from the previous page. If you get to a later step and it doesn't work, you might need to put the keys/secrets inside quotes.
```
CONSUMER_KEY = your consumer key
CONSUMER_SECRET = your consumer secret
ACCESS_TOKEN = your access token
ACCESS_TOKEN_SECRET = your access token secret
```
12. Run `git status`. If `twitter_keys.rb` appears as something about to be committed, add `twitter_keys.rb` to your `.gitignore`.
Great! Now you're all set up. Time to dig in!