Setting up a discord.py 2 discord bot from scratch in python

  Рет қаралды 30,570

Richard Schwabe

Richard Schwabe

Күн бұрын

In this video we setup our python environment for the discord.py 2 course.
We use virtualenv to keep our project need, and python-dotenv to load environment variables from a .env file.
We also configure discord.py to start our first bot.
🔗 URLs 🔗
github.com/git...
virtualenv.pyp...
pypi.org/proje...
git-scm.com/

🗃️Github Project URL🗃️
github.com/ric...
🏆About this course🏆
My updated course: "How to make a discord bot" with discord.py 2.x covers everything you need to know to raise productivity and user activity on your discord server. By following this course you will learn everything you need to creat a successful bot. Resulting in a professional, community driven and feature rich successful discord server.
The initial videos cover all necessary elements to create anything you want with discordpy, this includes:
Registering a discord bot and inviting it to your server
Setting up the python project with extra logging functionality
Introduction to basic discordpy bot command structure
Automatically load bot commands from separate files
Handling user input with discordpy converters in a bot instance
Handling errors during command execution
Grouping commands together for better command organisation
Creating discordpy COG (command collections)
Loading COG extensions automatically from files
Creating checks to limit access on bot commands
DMs & "only you can see this" messages
Hybrid commands to have both custom bot commands but also "SlashCommands"
Dedicated Slashcommands
Application commands in context menus for Members and Messages
Decorators for Slashcommands
Transform any user input in Slashcommands
Handling autocompletion and filtering of Slashcommand user input
Send rich text embeds with pictures, links and tables
Create Views with Buttons for even better user interactions
Showing Modals with Selects, TextInputs and Buttons
🎥Playlist 🎥
• How to create a DISCOR...
❤Community❤
To support the channel and see more tutorials about technologies:
👉LIKE & SUBSCRIBE to the channel:
www.youtube.com...
👉Join us on our discord server: / discord
🌲My Linktr.ee 🌲
linktr.ee/rich...
🗃️Code to my videos can be found on Github: github.com/ric...
👉Comment below the video for feedback, suggestions, wishes or if you have spotted a mistake!
🏷️ Tags 🏷️
how to make a discord bot,python tutorial,discord bot,discord music bot,python discord bot,discord bot maker,discord py,best discord bots 2022,discordpy,discord bot client,create discord bot python,slash commands discord.py,discord py 2.0,create slash commands discord.py,discord.py slash commands,discordpy cogs,discord.py buttons, discord.py tutorial, discord.py tutorial 2023
© Created by Richard Schwabe with ❤ ©
Music License: KZbin Audio Library
Website: www.richardschwabe.de
All code examples fall under GNU General Public License v3.0
We do not recommend using code shown in tutorials or on our Github public repository to run in production environment and should be used for education only.
We cannot be held liable for any damage caused by the code or do not provide any warranty.

Пікірлер: 34
@HundredAcres
@HundredAcres Жыл бұрын
Thank you for your videos! I was trying to figure out how to read the API docs and watch a video of someone doing it but everyone uses Client instead of bot. I really appreciate it!
@OakWoodZEdits
@OakWoodZEdits 9 ай бұрын
im from 2024 and gosh when i see the 1 year ago and it says 2023 i started to cry
@FallingAsleep_12
@FallingAsleep_12 Ай бұрын
cry ? why ?
@FallingAsleepCoder
@FallingAsleepCoder 5 күн бұрын
@@FallingAsleep_12 hi
@pauldong4425
@pauldong4425 6 ай бұрын
What are the benefits of going through the steps of putting token in .env file and then using github etc compared to simply copying the token into the bot.run() command?
@SkengMeers
@SkengMeers 6 ай бұрын
people may see your token if its in the normal file but using a env is more safe
@WerDasLiestStinktSoWieBruno
@WerDasLiestStinktSoWieBruno 3 ай бұрын
if you plan on making your code public, you need to hide your bot token. if you keep the code private and only host the bot for yourself, you can just copy the token into bot.run()
@Schnipps
@Schnipps 10 ай бұрын
So, you did the git commit AFTER you made the main.py. But in the video, you made main.py AFTER you did git commit. Can you update these to be actually in order? Cause NONE of my stuff works following your video
@Notscentre
@Notscentre 7 ай бұрын
i made a fully new vsc workspace js for dis series and nothing works in this video (like it doesnt even show me the venv version of python when selecting a new terminal)
@ItzClinky
@ItzClinky 6 ай бұрын
WHAT DO IT DO? pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
@swasikamel
@swasikamel 6 ай бұрын
Hey, I had the same problem. Just try pip3 instead of pip, that should fix it.
@makszab285
@makszab285 5 ай бұрын
u installed python incorrectly
@jeelkatua
@jeelkatua 2 ай бұрын
if you use mac than try pip3 and if you have window and this problem is remains than uninstall your python folder and reinstall it, because your pip folder was delet therefore you dhow that problem when i deleted my pip folder i show that problem😅
@fiv5792
@fiv5792 Жыл бұрын
for some reason i cant install the virtualenv
@Sythdox
@Sythdox 10 ай бұрын
same
@novax1_
@novax1_ 9 ай бұрын
BRO SAME
@Akhildesignsbuddy
@Akhildesignsbuddy 9 ай бұрын
you can use replit secret key though if i understand your concern correctly
@korupt5686
@korupt5686 9 ай бұрын
python3 -m virtualenv venv
@mapiatto
@mapiatto 8 ай бұрын
It worked for me with the command python -m venv ./.venv
@aabbcc7532
@aabbcc7532 5 ай бұрын
"pip install discord" and "pip install discord.py" work but "pip install discord.py[voice]" does not
@Schnipps
@Schnipps 10 ай бұрын
git doesn't work
@el_ciprix
@el_ciprix Жыл бұрын
Beautiful man❤
@Rosiesrosee
@Rosiesrosee 6 ай бұрын
Guys this tutorials qon't work cause they're almost 2 years old (in 2024) python changes over time
@phamhoangthong4815
@phamhoangthong4815 Жыл бұрын
Hello can i ask. I try to make a discord bot for me and my friends to play dnd but the bot only rresponse to me but not my friends. Do i need to add something?
@NahhDontTryToFindMe
@NahhDontTryToFindMe 8 ай бұрын
when doing pip install it dosnt work? Pls help man
@onepiecenetwork1781
@onepiecenetwork1781 7 ай бұрын
you probably dont have python installed properly
@WerDasLiestStinktSoWieBruno
@WerDasLiestStinktSoWieBruno 3 ай бұрын
reinstall python and include pip
@BestEli
@BestEli Жыл бұрын
git commit doesnt work for me
@DINOxANAS
@DINOxANAS Жыл бұрын
Same and i think just because of git commin i am not able to start my bot to test it says type error: 'module' object is not callable
@WerDasLiestStinktSoWieBruno
@WerDasLiestStinktSoWieBruno 3 ай бұрын
@@DINOxANAS that has nothing to do with git. git is a platform to save your code. it is entirely optional
@bij_ay
@bij_ay 7 ай бұрын
This maybe good but idk why u r making simple steps a complex
Setup logging in discord.py 2 with python logging module
8:16
Richard Schwabe
Рет қаралды 16 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 30 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 27 МЛН
Developer Badge Tutorial | 2024 (OUTDATED)
3:59
ItzMeWaffy
Рет қаралды 33 М.
Python 3.13's new REPL is AMAZING
10:21
Carberra
Рет қаралды 58 М.
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 656 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 809 М.
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 43 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 76 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 718 М.
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 30 МЛН