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
- Host: GitHub
- URL: https://github.com/erbridge/gotwit
- Owner: erbridge
- License: mit
- Created: 2015-01-11T00:18:00.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2020-06-14T17:26:09.000Z (about 6 years ago)
- Last Synced: 2025-02-09T21:12:43.934Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```