
A formatter and language file validator for Python Discord bots.
- ✏️ Includes formatters for
Pycordanddiscord.py. - 📚 Format and compare YAML files.
- 📝 Supports Ezcord language files.
Installing
Python 3.10 or higher is required.
pip install bot-formatter
Usage
To format a file, run:
bot-formatter main.py
bot-formatter --lang path/to/language/dir
bot-formatter --help
For a full overview, see the config page.
Pre-Commit
To use bot-formatter as a pre-commit hook, add the following lines to your .pre-commit-config.yaml:
- repo: https://github.com/CookieAppTeam/bot-formatter
rev: 0.1.3
hooks:
- id: bot-formatter