A formatter and language file validator for Python Discord bots.
- ✏️ Includes formatters for
Pycordanddiscord.py. - 📚 Format and compare YAML files.
- 📝 Supports Ezcord language files.
Python 3.10 or higher is required.
pip install bot-formatter
To format a file, run:
bot-formatter main.py
To format YAML language files in a directory, run:
bot-formatter --lang path/to/language/dir
To view all available options, run:
bot-formatter --help
For a full overview, see the documentation.
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.2
hooks:
- id: bot-formatter