This is a simple starter template for projects built with discord.py
. In addition, the template is built around
a few key libraries:
poetry -- package manager, scripts
cogwatch -- automatic command loading, hot-reloading
uvloop -- ultra fast asyncio event loop
black -- code formatting
-
Ensure you have Poetry installed with
poetry --version
. If not, follow the official installation instructions. -
Run
poetry install
to download all dependencies. -
Rename the
.env.template
file to.env
and add your API token and user ID. You can set the prefix here as well.
The included scripts.py file is the recommended way to access CLI scripts with Poetry.
poetry run bot
-- starts the bot client
poetry run fmt
-- formats your code with black
based on the configuration defined in pyproject.toml