Skip to content

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

License

Notifications You must be signed in to change notification settings

tldr-pages/tldr-bot

Repository files navigation

tldr-bot

A simple bot that performs automation tasks on the main tldr repository.

Quick start

  • Generate a GitHub personal access token with the repo scope and then set the needed environment variables:
FLASK_APP=/path/to/app/tldr_bot.py
BOT_TOKEN=<token>
BOT_USERNAME=<username>
REPO_SLUG=tldr-pages/tldr
PORT=<port>

Then run the app using Flask:

flask run --port=$PORT

Run as a service

See the 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.

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

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages