Skip to content

A template for Discord bots written with Discord.py

Notifications You must be signed in to change notification settings

Iapetus-11/discord-py-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord.py template

Features

  • Comes with everything needed to start a Discord bot
  • Configuration - auto loaded and validated using Pydantic, example file generation
  • Database - sqlite database using aiosqlite, automatically setup on startup
  • Error handling - command error handling is ready to go
  • Basic structure - basic structure and boilerplate of the bot has already been layed out

Usage

  1. Make sure you have Python installed
  2. Install Poetry with pip like py -m pip install poetry or if you're not on Windows python3 -m pip install poetry
  3. Install dependencies with Poetry using the command poetry install
  4. Create a file called .env based off the contents of example.env
  5. Run the bot using poetry run py -m bot or if you're not on Windows poetry run python3 -m bot