Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 999 Bytes

README.md

File metadata and controls

52 lines (31 loc) · 999 Bytes

🦊

Development

Setup

Use pipenv:

pipenv install --dev
pipenv run redbot-setup

Name your bot instance dev, ideally, for the built-in scripts here to work as-is.

Running

pipenv run bot

First run will have you provide a token. Grab one here after adding a bot user.

Formatting, linting, tests

Use black. pipenv run style to auto-format all files.

pyright is used for type checking. pipenv run check to run.

Similarly, pipenv run test to run pytest tests.

To validate that things will work on CI, you can use pipenv run ci.

Deployment

Use Docker!

First-run:

docker run --name kenku -it -v /opt/kenku:/data --restart unless-stopped ghcr.io/mtkanjon/kenku:main

Subsequent runs:

docker start kenku

GitHub Actions

In addition to style checks, GitHub actions will also deploy this project on push to the main branch.