Skip to content

Commit

Permalink
readme: update build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
haarts committed Mar 3, 2017
1 parent e3821c1 commit 5f699b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,23 @@ It checks [HackerNews](http://news.ycombinator.com), [Reddit](http://www.reddit.

`$ go build`

### Plugins

```shell
$ cd plugins/golang_news
$ go build -buildmode=plugin
```

## Run

Add your credential of your personal twitter bot to `settings.json`, look at
`settings.json.example` for, well, an example.

The settings file is expect to be in the same directory as the executable.

Finally run the binary with the first argument pointing to the plugin (`*.so`
file):

```shell
$ ./golang_news plugins/golang_news/golang_news.so
```

0 comments on commit 5f699b8

Please sign in to comment.