Skip to content

A formatter and language file validator for Python Discord bots.

License

Notifications You must be signed in to change notification settings

CookieAppTeam/bot-formatter

Repository files navigation

Bot Formatter

A formatter and language file validator for Python Discord bots.

  • ✏️ Includes formatters for Pycord and discord.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

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.

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.2
  hooks:
    - id: bot-formatter

About

A formatter and language file validator for Python Discord bots.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages