Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Simple starter template for a discord.py project.

Notifications You must be signed in to change notification settings

robertwayne/dpy-cogwatch-poetry-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dpy-cogwatch-poetry-template

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

Setup

  1. Ensure you have Poetry installed with poetry --version. If not, follow the official installation instructions.

  2. Run poetry install to download all dependencies.

  3. Rename the .env.template file to .env and add your API token and user ID. You can set the prefix here as well.

Scripts

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

About

Simple starter template for a discord.py project.

Topics

Resources

Stars

Watchers

Forks

Languages