Тёмный

Create Your Own Discord Bot in Python 3.12 Tutorial (2024 Edition) 

Indently
Подписаться 224 тыс.
Просмотров 103 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 179   
@Indently
@Indently 9 месяцев назад
Source code: github.com/federicoazzu/discord_tutorial_2024
@thecodingcove
@thecodingcove 7 месяцев назад
Ciao, sei italiano?
@siddhartharao4127
@siddhartharao4127 9 месяцев назад
I had been searching for a proper tutorial on a discord bot using python, but I couldn't find one since every video was outdated , and the documentation also made no sense. Thanks for the great work.
@Indently
@Indently 9 месяцев назад
Glad I could help!
@DanielTheOcto
@DanielTheOcto 7 месяцев назад
As someone who doesn't even own a computer and is borrowing one let alone how to code, this worked flawlessly. It's really easy once you get over the first few hurdles of installing everything correctly
@ilikecreeper331
@ilikecreeper331 5 месяцев назад
how's coding for you now?
@DanielTheOcto
@DanielTheOcto 4 месяца назад
@@ilikecreeper331 if you're asking if I've improved, not really. I only made a discord bot for an april fools gag for a couple of my friends. It does seem fun to learn later down the line if I ever do
@ilikecreeper331
@ilikecreeper331 4 месяца назад
@@DanielTheOcto well you’ll get there Speaking of discord bots I’m learning how to build one with python recently too
@embritton4814
@embritton4814 4 месяца назад
@@DanielTheOcto WOuld you mind explaining how you got over the pip install issues? I cant find anything.
@DanielTheOcto
@DanielTheOcto 4 месяца назад
@@embritton4814 unfortunately I do not remember
@TheOnlyCurd
@TheOnlyCurd 8 месяцев назад
This helped me a lot thank you.Keep up the work it really high quality
@Q.Roo_0
@Q.Roo_0 9 месяцев назад
I have never heard of the walrus operator. Just that alone made watching this video worth my while.
@terribletimmy2
@terribletimmy2 7 месяцев назад
Recent addition to Python! Just learned about it as well
@tjb3171
@tjb3171 6 месяцев назад
same lol
@artnaz
@artnaz 3 месяца назад
I believe it was introduced in Python 3.8. Not that "recent" 🙂
@Issma62
@Issma62 3 месяца назад
Literally the same 😂🤔
@Overlycomplicatedswede
@Overlycomplicatedswede 6 месяцев назад
Jag är så glad, folk som dig är göra guider för python liksom andra kodning språk! Kärlek från Sverige!
@Indently
@Indently 5 месяцев назад
Kul att se en svensk i kommentarerna, jag håller på att lära mig svenska just nu :)
@Overlycomplicatedswede
@Overlycomplicatedswede 5 месяцев назад
@@Indently ja, jag såg du kommer från danmark o jag bestämde mig för att lämna en vänlig kommentar
@TonyStark-lg7cw
@TonyStark-lg7cw 8 месяцев назад
Thank you so much for this tutorial, I followed along and created my own Discord Bot!
@Indently
@Indently 8 месяцев назад
Glad it helped!
@sSessionn
@sSessionn 9 месяцев назад
Hi, this video was very helpful to me. I hope you will continue to bring content regarding creating a discord bot in python and in a future video you will discuss the use of embeds, welcome messages, buttons, moderation functions and so on. I have so many questions haha
@ivyw777
@ivyw777 6 месяцев назад
I made it!🙂Thank you. I got my first bot running.
@sarojmaharjan3986
@sarojmaharjan3986 Месяц назад
This tutorial is by far the most useful one for starting a general simple discord bot! Really appreciate it. Thank you !
@alejandroperezl
@alejandroperezl 9 месяцев назад
Thanks for the video and all the contents you’ve created. I’ve recently bought a couple of Udemy courses from you and they’re amazing. Congrats.
@Indently
@Indently 9 месяцев назад
A huge thanks for the support! It means a lot!:)
@CooperStaz
@CooperStaz Месяц назад
Great video! Especially for programmers who are just getting into their programming journey.
@hustlej
@hustlej 8 месяцев назад
Coded my first discord bot today with your video, now i'm using the code to learn further into adding more features and stuff to my bot! thank you for the super easy to follow tutorial
@brien.
@brien. 8 месяцев назад
super cool, good luck with your coding journey!
@dzelezny
@dzelezny Месяц назад
hey, how is your journey going?
@developer_anonymous
@developer_anonymous 5 месяцев назад
0:35 Dont use `discord`, use `discord.py`, `discord` is a mirror package, even the README in PyPi shows this warning. 8:42 Please, explain better Intents, Intents are the different things your bot wants to recieve from the Gateway & API, not some sort of permissions... 10:30 No!! Check if the message has any embeds or attachments rather than just saying that intents are not set up. 14:22 No need for the `elif`s, if any `if` block check is met then it will return something... I can't really explain myself here but no needs did elif 18:20 No need for those variables... 19:58 Why do you still have that "one liner check"? Just use if blocks, it makes readability better Also, why make a `responses.py` file? I thought you were using clean python practises, and that is NOT a good python practise. Anyways, good vid
@ClaireNighten
@ClaireNighten 2 месяца назад
This is amazing! thank you for such a lovely tutorial!
@chanlers
@chanlers 4 месяца назад
literally the best tutorial ever... worked like a charm. thank you!!
@kiss6917
@kiss6917 9 месяцев назад
Thank you for this so much! Now I am well on my way to creating an AI chatbot using python for discord!
@Indently
@Indently 9 месяцев назад
Glad it helped!
@ProjectMarzDev
@ProjectMarzDev 4 месяца назад
this was very easy i have barely ever coded with pyuthon but i have learned alot jsut becyse of this tutorial thank you so much!
@justinserota3406
@justinserota3406 2 месяца назад
Awesome tutorial, thank you!
@thebetsnameverlol1531
@thebetsnameverlol1531 8 месяцев назад
followed the tutorial but the bot doesn't response in the channel, only private messages. can you help?
@ravenlb
@ravenlb 9 месяцев назад
Great job, well presented - thanks!
@FousmanFous
@FousmanFous 5 месяцев назад
I made my first bot , i will say big thank you for all! ❤
@korneldekany6689
@korneldekany6689 Месяц назад
This was realy helpful thanks!
@LearnwithChampzz-rv4lk
@LearnwithChampzz-rv4lk 4 месяца назад
Nicely presented!
@shrijitmajumder4411
@shrijitmajumder4411 3 месяца назад
Thanks for this awesome project
@kthefreak
@kthefreak Месяц назад
Im 12 y/o and this helped me a lot ,thanks!
@DynastyRealism
@DynastyRealism 5 месяцев назад
So, it says everything is all good and up and running. Everything is exact as the video. But when I text in the channels, it won't respond. But when I text using the ? then thats when it works and goes to DMs. What's wrong? Why won't it work normal?
@PengKun-py7md
@PengKun-py7md 7 месяцев назад
tanks this video a lot. ❤you can't believe how long i debug my program just because missing click message content
@maexle14
@maexle14 9 месяцев назад
Can you make a tutorial, how to add slash commands to THIS Version of a Discord Bot? But good job, thanks
@lainp1lledd
@lainp1lledd 9 месяцев назад
Hi, I really liked the video! Can you show us how to implement a RU-vid video tracking functionality (like Pingcord)? I've looked online but I can't find a way to do this since I'm not the owner of the RU-vid Account whose videos I wanna be reminded of. Thanks :) EDIT: Also slash commands please!!
@Qdbp-sh5ti
@Qdbp-sh5ti 6 месяцев назад
Im print "TOKEN", but the out is: "None"
@ezirimkingdom
@ezirimkingdom 12 дней назад
Thanks alot, this really helped. How do i host it, so it keeps running?
@SWJaeTee
@SWJaeTee 2 месяца назад
I code in C# and that Walrus operator blew my mind
@kongle8737
@kongle8737 9 месяцев назад
when I try to make the .env file it just turns into a text file and everything in it is gray and doesnt work
@Wallee580
@Wallee580 9 месяцев назад
I don't think he understands how much some Linux users love the terminal. xD I'm legit working on a file manager for it. You may be asking why, and I'll tell you the reason is "why not"?
@rawsnot
@rawsnot 2 месяца назад
When I run my program I don't get the red messages.
@cristiangaming5019
@cristiangaming5019 9 месяцев назад
I tried your code and i got a error on line 5 theres no module named discord
@Jaden_YaLor
@Jaden_YaLor 8 месяцев назад
i had the same problem, so my suggestion is making sure its "discord" and not "Discord", as that was the problem for me when I got the same error message. If that doesn't work, then idk I'm pretty beginner at coding :|
@ECThrowaway
@ECThrowaway 8 месяцев назад
Look up what pip is, it will change the way you code
@st_9278
@st_9278 8 месяцев назад
Also you need to have pip installed firstly
@caeleng5553
@caeleng5553 8 месяцев назад
Great video! I am a bit confused what the .venv file is for though?
@bartuslongus
@bartuslongus 6 месяцев назад
The venv (virtual environment) folder is for storing the project specific modules without changing the global one. In this case we have the standard Python modules in there plus the modules installed witht pip: discord and dotenv.
@Neqless
@Neqless 6 месяцев назад
If you get the error with "intempered token was passed" or something, you have to save the file after putting in the token in .env. This will fix it
@m7mdnho154
@m7mdnho154 8 месяцев назад
New into bots and python. Thanks for the tutorial 🩷
@SynthStep20
@SynthStep20 2 месяца назад
I need help!! When running the code at main() it says "ImportError: cannot import name 'get_response' from 'responses'"
@meowecat
@meowecat 2 месяца назад
I have that too
@idonthaveideaofname.-.5281
@idonthaveideaofname.-.5281 15 дней назад
thank you for this tutorial, i have been looking for a good discord bot tutorial, but for some reason the "import os" section does not work as ""os" is not accessed by Pylance"
@shreyaanshpurohit9292
@shreyaanshpurohit9292 12 дней назад
yo, i got an error saying its an ssl error, how do i fix, i am on MacOS 15 Python 3.13
@joewipat5452
@joewipat5452 6 месяцев назад
I have an error AttributeError: 'Intents' object has no attribute 'message_content'. Has the docs changed because I am getting it when I run your code and the one I wrote
@bmaify
@bmaify 7 месяцев назад
Received an error saying: 'token' is not identified. When I look through the Discord_Token i noticed it's not highlighted in green like in the tutorial, but otherwise I followed everything normally. The code does print my token as it did in the tutorial. Is there a fix? Please and thank you Edit: I figured it out.
@itzbazil2586
@itzbazil2586 7 месяцев назад
What was your fix?
@szymek3652
@szymek3652 6 месяцев назад
what was it?
@BruvCode
@BruvCode 5 месяцев назад
Thanks for the information. I have now created my Discord Bot and its online but it wont respond to any message I type. Can you please re-upload this video and also add the chapter "Fix the bot when not responding to any messages"
@lukaskjekken3313
@lukaskjekken3313 9 месяцев назад
Hi! Really love the tutorial. Was just wondering, cause when I try to run the script I get a error message saying "asyncio.run() cannot be called from an running event loop", I just can't figure out what is causing this error.
@memze1148
@memze1148 7 месяцев назад
ask chatgpt
@avosc5316
@avosc5316 7 месяцев назад
Thanks!
@cxzirey
@cxzirey Месяц назад
thanks man
@cosmosinity
@cosmosinity 5 месяцев назад
For some reason, the bot won't go offline, how do i make it go offline??
@그러나-c7b
@그러나-c7b 6 месяцев назад
there is no get_response(function) :
@lasel2630
@lasel2630 5 месяцев назад
This tutorial is outdated. The developer portal has already changed!!!!!!!
@jennathekitsune6456
@jennathekitsune6456 4 месяца назад
You’re joking
@embritton4814
@embritton4814 4 месяца назад
@@jennathekitsune6456 Im crying rn
@sidnotthesloth1827
@sidnotthesloth1827 3 месяца назад
Has it? I did this yesterday and I was able to do everything he said.
@LukasCarrein
@LukasCarrein 2 месяца назад
uhm scroll down just a little bit
@DanielJones1
@DanielJones1 Месяц назад
Sadly yes, this is outdated! (I will be doing updated tutorials soon)
@mustafauludogann
@mustafauludogann 9 месяцев назад
Thank you
@ayushlamsal7044
@ayushlamsal7044 7 месяцев назад
i did it, all works well. except the bot endlessly responds to itself. it does not do that for default response for only for (hello and bye )though
@cocbeanj2419
@cocbeanj2419 3 месяца назад
my bot just never responds, ive gone through tut twice now and it just ignores me
@LukasCarrein
@LukasCarrein 2 месяца назад
14:11 why dont you use " instead of ' it means you dont have to do the \
@diegojose3863
@diegojose3863 8 месяцев назад
I followed the steps to this tutorial to a T, but I get stuck on the SSL certification. It states that my certification isn't valid, however I already updated it and all
@klaft5228
@klaft5228 7 месяцев назад
Me too! did you find a fix? let me know please! thanks.
@sandwichs8592
@sandwichs8592 3 месяца назад
depending on your version of Python, you should have a install certificates.command in your python folder I believe and that fixes the problem for most users. If you copy and paste the last line of the error code into your web browser you should be able to find some solutions if it is a certificate problem on the internet.
@marcodegner7599
@marcodegner7599 8 месяцев назад
Hello I have some problems, can someone help me? Unresolved reference 'dotenv' Unresolved reference 'load_dotenv' Unused import statement 'from discord import Intents, Client, Message' Unused import statement 'from discord import Intents, Client, Message' Unused import statement 'from discord import Intents, Client, Message'
@Zumbisinho
@Zumbisinho 6 месяцев назад
Do you put in the terminal "pip install python-dotenv"?
@SMHTEAM24
@SMHTEAM24 3 месяца назад
Brother whenever I'm trying to print the Token it's printing out None....Do you know the reason?
@ayam3330
@ayam3330 8 месяцев назад
That's work, but only on my channel where I'm as an owner, but it didn't work on my friend channel where I'm as an admin and my friend as an owner. I don't really understand discord 😢
@josephsalazar6096
@josephsalazar6096 4 месяца назад
im stuck at 7:35 from dotnev import load_dotnev I have a bug saying Cannot find reference 'load_dotenv' in '__init__.py' I can't figure out how to fix it
@sandwichs8592
@sandwichs8592 3 месяца назад
do you know if you have dotenv library installed on your machine? Sounds like python is trying to find the function, but can't find the package directory. Also make sure everything is spelled correctly.
@vrajved
@vrajved 3 месяца назад
@@sandwichs8592 could youhelp me out? i have it installed but ModuleNotFoundError: No module named 'dotenv' error keeps persisting
@Zai_sssss
@Zai_sssss 7 месяцев назад
I tried to gave it the permissions it didnt let me and sent me to a website that said "page not found".
@mofiro6758
@mofiro6758 Месяц назад
Too many one liner which makes it super hard for normal devs to read the code. Remember a code is written once and read like 10 times. Always write one more line but keep it readable. I say this as a senior developer.
@corbinalt1773
@corbinalt1773 5 месяцев назад
I recieved SO many errors and when I clicked the link to show me where it was it pulled up a bunch of random code that I never wrote nor could I edit it because it was read only. It went down into thousands of lines of code. I think it has something to do with the new intent stuff but I have no clue what to do about it. I coded everything exactly as is in the video. Can someone help?
@yoimiyasimpu8757
@yoimiyasimpu8757 4 месяца назад
my bot doesn't seem to be responding back but all the code and setup is the same? Only difference is I used Visual Studio Code
@Whoiamai
@Whoiamai 4 месяца назад
REPLIT IS BETTER TO HOST
@vishalgreat5154
@vishalgreat5154 4 месяца назад
When I run the code. It has no result. What should I check
@chartingwithliv
@chartingwithliv 6 месяцев назад
from dot_env import load_dotenv ModuleNotFoundError: No module named 'dot_env'
@petermakhoul8127
@petermakhoul8127 6 месяцев назад
same
@joshuawiley6506
@joshuawiley6506 6 месяцев назад
same! @@petermakhoul8127
@epicyoda.
@epicyoda. 5 месяцев назад
SAME did you guys find a solution?
@reaperdreamer8082
@reaperdreamer8082 4 месяца назад
My venv is not showing up. I've searched everywhere and I still don't know why. Anyone have a solution?
@11305205219
@11305205219 2 месяца назад
what is the between pip install discord and discordpy
@fly-lioxit0
@fly-lioxit0 7 месяцев назад
How can I make it to show the commands available like any other discord bot?
@ItzClinky
@ItzClinky 7 месяцев назад
pip is not working for me what else can I use?
@redluigi2020
@redluigi2020 3 месяца назад
pip isnt working for me do i have to download something for it?
@szymetrix5946
@szymetrix5946 7 месяцев назад
from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' help me
@koro6072
@koro6072 7 месяцев назад
did you do pip install for dotenv?
@Neoneedx
@Neoneedx 6 месяцев назад
Thank you so much, I did not install it ​@@koro6072
@sabatin056nn
@sabatin056nn 3 месяца назад
i have problem in dotenv , He says there is an error in this word (dotenv)
@Konatoast
@Konatoast 2 месяца назад
doesnt work anymore i tried it, also wrong discord import
@samukaze5810
@samukaze5810 2 месяца назад
At this point PyCharm is sponsored by Indently 💀
@TeclisIluminador
@TeclisIluminador 4 месяца назад
Nice video!!!
@Sslifer01
@Sslifer01 5 месяцев назад
Well my bot is not running.
@n1N0v8
@n1N0v8 9 месяцев назад
for some reason when I run nothing happens at all
@AnonymousGaming69420
@AnonymousGaming69420 9 месяцев назад
good video
@PuneetSinha-gb8ri
@PuneetSinha-gb8ri 6 месяцев назад
Could you please help URL generator is not visible for me
@M1lesSeen_Y0u
@M1lesSeen_Y0u 3 месяца назад
It updated again!
@SaintsPurgatory
@SaintsPurgatory 5 месяцев назад
20 minutes to respond to users? You apparently need to work on your descriptions for your vods.
@Indently
@Indently 5 месяцев назад
I don't know what else a chat bot is supposed to do if not "respond to users" lmao
@meowecat
@meowecat 2 месяца назад
@@Indently 20 minutes?
@TeamEliteFG
@TeamEliteFG 29 дней назад
i thought env was only for js
@luckofgaming930
@luckofgaming930 4 месяца назад
Somehow dotenv doesnt work in my case can anyone help me?
@GAMINVR
@GAMINVR 4 месяца назад
how do i make the bot send a image
@Oksamokki
@Oksamokki 5 месяцев назад
mine says : cdc is not defined.
@LiterallyTIM
@LiterallyTIM 9 месяцев назад
im doing this on replit. would there be any difference?
@saggybelt
@saggybelt 8 месяцев назад
secret instead of .env
@aDushandrii
@aDushandrii 9 месяцев назад
Last time i tried to learn python few years ago, and i don't remember this stuff with colons. All this stuff like "lowered : str =..." or "intents: Intents" = ... or "client: Client = ..." etc. Is this something new? I failed to even properly google it.
@lelouchlamperouge3676
@lelouchlamperouge3676 9 месяцев назад
well you are basically defining the TYPE of that variable you are mentioning
@zerodrip669
@zerodrip669 8 месяцев назад
it's a discord/api thing lol. "lowered: str", however, is simply declaring the variable type for `lowered`.
@jonnyaepmp4
@jonnyaepmp4 8 месяцев назад
yo buddy.. when i ran main 8:07 ... for me this comment popped up PS C:\Users\jonan> & C:/Users/jonan/AppData/Local/Programs/Python/Python312/python.exe d:/main Traceback (most recent call last): File "d:\main", line 3, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' what did i do wrong and how do i fix it
@jonnyaepmp4
@jonnyaepmp4 8 месяцев назад
pls help as quick as possible
@POGranola
@POGranola 8 месяцев назад
whenever you did "pip install python-dotenv" on the cmd, if did a message pop up saying that it wasn't in your path?
@Spngie
@Spngie 5 месяцев назад
what program are you using for this
@FlyingFrets
@FlyingFrets 5 месяцев назад
looks like visual studio code
@Sushi-wp8mg
@Sushi-wp8mg 5 месяцев назад
he is using PyCharm
@Gamer-XO
@Gamer-XO 6 месяцев назад
I am not understanding anything
@cuoreribelle4584
@cuoreribelle4584 5 месяцев назад
hi, but is it also possible to send a ddos ​​attack?
@sandwichs8592
@sandwichs8592 3 месяца назад
The bot should not be able to send a ddos attack because Discord will rate limit your bot, which is a HTTP error forcing your bot to disconnect and go offline.
@chandusharma205
@chandusharma205 9 месяцев назад
nxt part when?
@ElmVanO
@ElmVanO 9 месяцев назад
keep getting the error no module named dotenv
@carterlewkowski9126
@carterlewkowski9126 8 месяцев назад
Did you run the pip install python-dotenv command?
@zerodrip669
@zerodrip669 8 месяцев назад
tried to run it & it said "Error: please select a valid Python interpreter" with a whole menu of settings and options i can't even begin to understand
@TrueRyoB
@TrueRyoB 12 дней назад
so based
@gord51808
@gord51808 Месяц назад
The Token code isn't working it only shows my drive path and that's it
@krishnapathak292
@krishnapathak292 7 месяцев назад
it says NONE for print(TOKEN)
@Little_Lalo
@Little_Lalo 7 месяцев назад
same
@Blueshow.
@Blueshow. 8 месяцев назад
Can someone help me?
Далее
BEST Practises For SIMPLE Benchmarks In Python
8:30
진 (Jin) 'I'll Be There' Official MV
03:15
Просмотров 9 млн
5 Good Python Habits
17:35
Просмотров 579 тыс.
How programmers flex on each other
6:20
Просмотров 2,5 млн
5 Useful Python Decorators (ft. Carberra)
14:34
Просмотров 104 тыс.
No One Hires Jr Devs So I Made A Game
39:31
Просмотров 243 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 320 тыс.
I tried Discord Bot Makers...
14:19
Просмотров 128 тыс.
How to Make a Discord Bot with Python
29:17
Просмотров 61 тыс.
What does '__init__.py' do in Python?
6:50
Просмотров 58 тыс.