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

https://github.com/tldr-pages/tldr-bot

:robot: A simple bot that performs automation tasks on the main tldr repo
https://github.com/tldr-pages/tldr-bot

automation bot continuous-integration hacktoberfest tldr tldr-pages

Last synced: 5 months ago
JSON representation

:robot: A simple bot that performs automation tasks on the main tldr repo

Awesome Lists containing this project

README

          

# tldr-bot

A simple [bot](https://github.com/tldr-bot) that performs automation tasks on the main [tldr repository](https://github.com/tldr-pages/tldr).

## Quick start

- Generate a GitHub personal access token with the `repo` scope and then set the needed environment variables:

```sh
FLASK_APP=/path/to/app/tldr_bot.py
BOT_TOKEN=
BOT_USERNAME=
REPO_SLUG=tldr-pages/tldr
PORT=
```

Then run the app using Flask:

```sh
flask run --port=$PORT
```

## Run as a service

See the [`tldr-bot.service`](/tldr-bot.service) file for an example systemd unit configuration.

Typically, the service is running under uWSGI and fronted by nginx. So you need to set the proper nginx config too.

```sh
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:6129;
}
```