Sha256: 861ecdf1cd77e0bf6e8eb7bbcbef1fc53fe1958e8e62d4a6d7582d56eda812c4

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

# such_streaming_bot
A Twitter Bot

## Development

> bundle install
> ruby test.rb
> ruby spec.rb

## Deployment (heroku)

Once your bot has been well tested on the command line you'll need to get it out into the world!

*  You probably need git and the heroku toolbet installed and also a heroku account.
*  Make a twitter account for your bot. Give it a photo and header and some biographical information
*  Go into settings > mobile and add a cell phone number that you can send a text from.
    not all carriers will work :(
    without a mobile number, twitter won't let you get the api keys you need to deploy
    if your mobile number is associated with your personal account, temporarily delete it from that account so you can use it for your bot. Twitter doesn't care.
*  go to apps.twitter.com and sign in again
*  click create a new app
*  fill in the details. just put down the github repo link or twitter page for the bot as website/callback url. no one will ever see this except you.
*  once your app is created, click "modify app permissions" and set the app to read and write
*  wait a lil bit for permissions to change.......
*  click 'generate my access token'
*  wait a lil bit to get access tokens.....
*  SUCCESS! copy the access tokens down to a scratch txt file, but make sure not to commit it to source control/git/etc.! That would be bad because these things are secrets.
*  From the command line:

```
heroku create
heroku config:set TWITTER_CONSUMER_KEY=INSERT-YR-SECRETS-HERE
heroku config:set TWITTER_CONSUMER_SECRET=INSERT-YR-SECRETS-HERE
heroku config:set TWITTER_ACCESS_TOKEN=INSERT-YR-SECRETS-HERE
heroku config:set TWITTER_ACCESS_SECRET=INSERT-YR-SECRETS-HERE
 ```

*  go back to twitter.com and delete yr mobile phone from the bot account. you may also want to disable email notifications as well.
*  THE MAIN EVENT:

```
git push heroku master
heroku ps:scale bot=1
```

*  go to your bot's page and you should see it's first tweet! Or something?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bot_generator-0.2.2 such_streaming_bot/README.md