Skip to content

An example of building your first discord bot with Python

License

Notifications You must be signed in to change notification settings

ahu3fi/template-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

template-discord-bot

An example of building your first discord bot with Python

Modules required:

"discord" pip install discord

How to create bot in discord ?

You need to build an application in Discord

From this link you can create an application: Discord application

Then go to the Bot section in the left panel and click on the blue add bot button, you can leave a profile picture for your bot.

Below the bot is a token name, copy it and paste it in the Python file in the class CONFIG

Scroll down and enable the administrator option in the bot permission section.

In the left panel, go to the OAuth2 section and scroll down. In the OAuth2 URL Generator section, select the bot option. Scroll down and activate the administrator option.

A link is created for you that you can use to invite your bot to the server you want.

INFO

Commands

▪ 8ball
▪ ping
▪ kick
▪ ban
▪ clear

Version: 1.3