Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fletchto99/hn-bot-docker

A docker container to run qznc/hn_bot
https://github.com/fletchto99/hn-bot-docker

Last synced: 19 days ago
JSON representation

A docker container to run qznc/hn_bot

Awesome Lists containing this project

README

        

# HN Bot

This is a containerized version of the qznc's [hackernews bot](https://github.com/qznc/hn_bot) used to post to [/r/hackernews](https://reddit.com/r/hackernews). The bot runs in a cron job every hour.

## Usage

```
docker run \
--name=hn_bot \
-v : \
-e praw_client_id= \
-e praw_client_secret= \
-e praw_username= \
-e praw_password= \
-e database_file= \
fletchto99/hn-bot
```

## Parameters
* `-v :`
* `-e praw_client_id` - The bot's client ID
* `-e praw_client_secret` - The bot's client ID
* `-e praw_username` - The bot's username on reddit
* `-e praw_password` - The bot's password

For more information see the [praw documentation](https://praw.readthedocs.io/en/latest/getting_started/configuration/options.html#configuration-options).

## Optional Parameters
* `-e databsase_file` - The path to the databse file (preferably mounted on a persistent volume)