A Discord bot for the Programming server.
Requires Python 3.6 or later. There is a sample configuration file at misc/config.toml
.
Setup:
$ pip3 install --user -r requirements.txt
To run:
$ python3 -m futaba <config.toml>
More setup:
$ pip3 install --user -r requirements-dev.txt
Formatting and linting code:
$ black futaba
$ pylint futaba
You can have a production system, complete with a systemd service file, you can use the provided
deploy.sh
script. If there is a futaba.service
file in the repository root, that service is installed, otherwise the one in misc/
is used.
Usage:
$ ./deploy.sh <config.toml>
Installs dependencies, installs the service and configuration files, then restarts the unit.