An open API service indexing awesome lists of open source software.

https://github.com/erbridge/gotwit

A library for creating Twitter bots
https://github.com/erbridge/gotwit

Last synced: about 1 year ago
JSON representation

A library for creating Twitter bots

Awesome Lists containing this project

README

          

# gotwit

A library for creating twitter bots.

## Getting Started

Copy the files from `template/` to a new project.

Rename `secret.example.json` to `secrets.json` and fill in the tokens with your bot's API tokens.

## Running on Heroku

Install Godep:

```
$ go get github.com/tools/godep
```

Freeze the dependencies:

```
$ godep save
```

Add a `Procfile` containing the following:

```
worker:
```

Commit everything:

```
$ git init
$ git add .
$ git commit -m "Initial commit."
```

Now you're ready to push to Heroku.

Create a Heroku instance:

```
$ heroku create -b https://github.com/heroku/heroku-buildpack-go.git
```

Set up the environment:

```
$ heroku config:set \
GOTWIT_CONSUMER_KEY= \
GOTWIT_CONSUMER_SECRET= \
GOTWIT_ACCESS_TOKEN= \
GOTWIT_ACCESS_TOKEN_SECRET=
```

Now you're ready to go. Push it live:

```
$ git push heroku master
```