Skip to content

dragid10/discord-dice-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Dice Bot Template

A template for creating a discord bot that can roll dice.

Tech Stack

Server: Python 3.12+

Libraries:

  • Py-cord: The library used to interact with the discord API

  • python-dotenv: Library used to load environment variables from a .env file

  • Mypy: Static type checker for python

  • ruff: Library used to lint the codebase

Environment Variables

To run this project you will need to:

  1. Copy the .env-sample file and rename it to .env
  2. Populate the following environment variable to your .env file

DISCORD_TOKEN: The token of your discord bot. This can be found in the discord developer portal in the bot section of your application.


Run Locally

  1. Create a new repository from this template, using the button in the top-right corner

  2. Clone your new project

      git clone https://github.com/<YOUR_USERNAME>/discord-dice-bot-template
  3. Go to the project directory

      cd discord-dice-bot-template
  4. Install dependencies

      pip install -r requirements.txt
  5. Run the bot

      python main.py

About

A template repo for creating a discord bot that can roll dice.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages