Skip to content

GreatTaku/Discord-Bot-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot Examples [DBE] (Python)

Discord Bot Examples (DBE) is a repository containing well-documented and easy-to-learn examples involving the use of discord.py library.

Status: Underdevelopment

Doc: Unknown Build: Success License: MIT License Language: Python Release: Unknown

WARNING: THIS REPO IS STILL UNDER DEVELOPMENT

A more organized version of the doc-strings can be found on the DBE documentation: https://dbe.readthedocs.io/en/latest/ (not ready yet!)

Introduction

Welcome to DBE! Have you ever wondered how to create your own discord bot? Here you can learn to create a personalized discord bot from scratch. DBE utilizes the programming language Python and the discord.py library

Purposes

  • Help new discord developers start using the discord.py API
  • Step by step guide programmers through developing a working discord bot
  • Give examples of various functionalities that discord.py is capable of
  • Address the common FAQ regarding discord.py

Continue to Fist Step when you're ready to begin.

Creating a bot account

  1. Go to Discord Developer Page and login or register an Discord User Account (you can login with your personal discord account)
  2. Go to My Apps
  3. Click on New App
  4. Fill in "App Name" with your bot's name (this will be your bot name, it cannot be changed)
  5. Fill in the optional "App Description" with the description and upload a bot avatar for "App Icon"
  6. Click on "Create App" (note: All previously added details are changeable)
  7. Go to My Apps and select the bot you just created
  8. Scroll down to the "Bot" section, click "Create a Bot User", and conform your choice ("click Yes, do it!")
  9. Click on the check mark for "Public Bot"
  10. Click on "Token: click to reveal", keep note of the generated token (DO NOT SHARE THE TOKEN WITH ANYONE)
  11. You're done at creating the bot!

Installing Python and dependencies

Installing Python

  1. Go to the Python Download Page and download a version of Python 3
  2. Follow the installation setup (if you're on Windows, check "add python to PATH" in the setup script)
  3. Python is now installed on your system

Installing dependencies

Choose a version of discord.py, there are currently 2 major versions, rewrite (v1.0) and async (v0.16.x).

  • Rewrite is a newly developed version of discord.py, it's fully usable but it's still in active development
  • Async is the stable version of discord.py
  • If you are uncertain about which version to choose, rewrite has more functionalities than async

Rewrite and async is not compatible.

After you chose the version you want to use, go to the directory in this GitHub repo with the version name. The rest of the dependencies installation tutorial will be in the README.rtf of that directory.

Further Reading

The rest of the introduction will continue in the README.rst of the rewrite or async directories.

Discord Bot Examples (DBE) is not affiliated in any way with the discord.py library or the development of discord.py. DBE is an example/tutorial repository developed by Taku. Read the LICENSE file for more information.