Skip to content

egeyardimci/Discord-Py-Bot-Template

Discord Py Bot Template

Discord.py is a library that allows you to make discord bots with python and this repo is a template of a bot which is made by using Discord.Py.

  • ✨I am trying to help the bot developing community with this template✨

Features

  • 10+ ready to use functions.
  • Easy start for begginer bot developers.

Notes From The Developer

It is recommended to use other sources to get started with the bot developement process and use this repo to take a look when you strugle or when you need to see a finished bot structure.

Setup

Bot requires Python 3 to run.

Install the dependencies

pip install -r requirements.txt

Or you can use the setup file to run this code automatically.

Setting up the bot properties

Set .env file with the values in .env.example You can get your bot token from discords developer page

DISCORD_BOT_TOKEN=your_token_here
BOT_STATUS="Example Bot Status"
BOT_PREFIX="."
BOT_NAME="Example Bot"
BOT_AUTHOR="Your Name"

How to run

  • The bot can be started with a python command:
    python bot.py

How to run using docker

  1. First configure your bot then build the docker image with command:
    docker build -t my-bot-app .
  2. Then run the bot with command:
    docker run my-bot-app

Contribution

There are TODO items, issues listed in the TODO.md file.

You can always make pull request to this repo, if you report or fix a bug or if you add more commands to the template I'll be happy to merge them.

Contributors 7

Languages