No video

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

  Рет қаралды 88,241

Indently

Indently

Күн бұрын

Пікірлер: 164
@Indently
@Indently 7 ай бұрын
Source code: github.com/federicoazzu/discord_tutorial_2024
@thecodingcove
@thecodingcove 5 ай бұрын
Ciao, sei italiano?
@siddhartharao4127
@siddhartharao4127 7 ай бұрын
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 7 ай бұрын
Glad I could help!
@DanielTheOcto
@DanielTheOcto 5 ай бұрын
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 3 ай бұрын
how's coding for you now?
@DanielTheOcto
@DanielTheOcto 2 ай бұрын
@@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 2 ай бұрын
@@DanielTheOcto well you’ll get there Speaking of discord bots I’m learning how to build one with python recently too
@embritton4814
@embritton4814 2 ай бұрын
@@DanielTheOcto WOuld you mind explaining how you got over the pip install issues? I cant find anything.
@DanielTheOcto
@DanielTheOcto 2 ай бұрын
@@embritton4814 unfortunately I do not remember
@Q.Roo_0
@Q.Roo_0 7 ай бұрын
I have never heard of the walrus operator. Just that alone made watching this video worth my while.
@terribletimmy2
@terribletimmy2 5 ай бұрын
Recent addition to Python! Just learned about it as well
@tjb3171
@tjb3171 4 ай бұрын
same lol
@artnaz
@artnaz Ай бұрын
I believe it was introduced in Python 3.8. Not that "recent" 🙂
@Issma62
@Issma62 Ай бұрын
Literally the same 😂🤔
@Overlycomplicatedswede
@Overlycomplicatedswede 4 ай бұрын
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 3 ай бұрын
Kul att se en svensk i kommentarerna, jag håller på att lära mig svenska just nu :)
@Overlycomplicatedswede
@Overlycomplicatedswede 3 ай бұрын
@@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 6 ай бұрын
Thank you so much for this tutorial, I followed along and created my own Discord Bot!
@Indently
@Indently 6 ай бұрын
Glad it helped!
@sSessionn
@sSessionn 7 ай бұрын
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
@TheOnlyCurd
@TheOnlyCurd 6 ай бұрын
This helped me a lot thank you.Keep up the work it really high quality
@alejandroperezl
@alejandroperezl 7 ай бұрын
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 7 ай бұрын
A huge thanks for the support! It means a lot!:)
@ivyw777
@ivyw777 4 ай бұрын
I made it!🙂Thank you. I got my first bot running.
@hustlej
@hustlej 6 ай бұрын
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. 6 ай бұрын
super cool, good luck with your coding journey!
@ClaireNighten
@ClaireNighten 19 күн бұрын
This is amazing! thank you for such a lovely tutorial!
@justinserota3406
@justinserota3406 13 күн бұрын
Awesome tutorial, thank you!
@chanlers
@chanlers 2 ай бұрын
literally the best tutorial ever... worked like a charm. thank you!!
@FousmanFous
@FousmanFous 3 ай бұрын
I made my first bot , i will say big thank you for all! ❤
@kiss6917
@kiss6917 7 ай бұрын
Thank you for this so much! Now I am well on my way to creating an AI chatbot using python for discord!
@Indently
@Indently 7 ай бұрын
Glad it helped!
@ProjectMarzDev
@ProjectMarzDev 2 ай бұрын
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!
@thebetsnameverlol1531
@thebetsnameverlol1531 6 ай бұрын
followed the tutorial but the bot doesn't response in the channel, only private messages. can you help?
@developer_anonymous
@developer_anonymous 3 ай бұрын
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
@ravenlb
@ravenlb 7 ай бұрын
Great job, well presented - thanks!
@SWJaeTee
@SWJaeTee 5 күн бұрын
I code in C# and that Walrus operator blew my mind
@DynastyRealism
@DynastyRealism 3 ай бұрын
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?
@shrijitmajumder4411
@shrijitmajumder4411 Ай бұрын
Thanks for this awesome project
@LearnwithChampzz-rv4lk
@LearnwithChampzz-rv4lk 2 ай бұрын
Nicely presented!
@Qdbp-sh5ti
@Qdbp-sh5ti 4 ай бұрын
Im print "TOKEN", but the out is: "None"
@rawsnot
@rawsnot 11 күн бұрын
When I run my program I don't get the red messages.
@cristiangaming5019
@cristiangaming5019 7 ай бұрын
I tried your code and i got a error on line 5 theres no module named discord
@Jaden_YaLor
@Jaden_YaLor 6 ай бұрын
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 6 ай бұрын
Look up what pip is, it will change the way you code
@st_9278
@st_9278 6 ай бұрын
Also you need to have pip installed firstly
@maexle14
@maexle14 7 ай бұрын
Can you make a tutorial, how to add slash commands to THIS Version of a Discord Bot? But good job, thanks
@user-st2yn9ve1t
@user-st2yn9ve1t 23 күн бұрын
14:11 why dont you use " instead of ' it means you dont have to do the \
@lainp1lledd
@lainp1lledd 7 ай бұрын
Hi, I really liked the video! Can you show us how to implement a KZbin 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 KZbin Account whose videos I wanna be reminded of. Thanks :) EDIT: Also slash commands please!!
@PengKun-py7md
@PengKun-py7md 5 ай бұрын
tanks this video a lot. ❤you can't believe how long i debug my program just because missing click message content
@SynthStep20
@SynthStep20 19 күн бұрын
I need help!! When running the code at main() it says "ImportError: cannot import name 'get_response' from 'responses'"
@meowecat
@meowecat 12 күн бұрын
I have that too
@user-sg9tg8lj7w
@user-sg9tg8lj7w 4 ай бұрын
there is no get_response(function) :
@M1lesSeen_Y0u
@M1lesSeen_Y0u Ай бұрын
It updated again!
@marcodegner7599
@marcodegner7599 6 ай бұрын
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 4 ай бұрын
Do you put in the terminal "pip install python-dotenv"?
@Neqless
@Neqless 4 ай бұрын
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
@mustafauludogann
@mustafauludogann 7 ай бұрын
Thank you
@joewipat5452
@joewipat5452 4 ай бұрын
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
@caeleng5553
@caeleng5553 6 ай бұрын
Great video! I am a bit confused what the .venv file is for though?
@bartuslongus
@bartuslongus 4 ай бұрын
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.
@lukaskjekken3313
@lukaskjekken3313 7 ай бұрын
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 5 ай бұрын
ask chatgpt
@avosc5316
@avosc5316 5 ай бұрын
Thanks!
@samukaze5810
@samukaze5810 25 күн бұрын
At this point PyCharm is sponsored by Indently 💀
@bmaify
@bmaify 5 ай бұрын
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 5 ай бұрын
What was your fix?
@szymek3652
@szymek3652 4 ай бұрын
what was it?
@kongle8737
@kongle8737 7 ай бұрын
when I try to make the .env file it just turns into a text file and everything in it is gray and doesnt work
@m7mdnho154
@m7mdnho154 6 ай бұрын
New into bots and python. Thanks for the tutorial 🩷
@ace-veen35
@ace-veen35 7 ай бұрын
Thank you bro
@josephsalazar6096
@josephsalazar6096 2 ай бұрын
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 Ай бұрын
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 Ай бұрын
@@sandwichs8592 could youhelp me out? i have it installed but ModuleNotFoundError: No module named 'dotenv' error keeps persisting
@cocbeanj2419
@cocbeanj2419 Ай бұрын
my bot just never responds, ive gone through tut twice now and it just ignores me
@BruvCode
@BruvCode 3 ай бұрын
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"
@11305205219
@11305205219 21 күн бұрын
what is the between pip install discord and discordpy
@ayushlamsal7044
@ayushlamsal7044 5 ай бұрын
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
@Konatoast
@Konatoast 27 күн бұрын
doesnt work anymore i tried it, also wrong discord import
@Wallee580
@Wallee580 7 ай бұрын
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"?
@cosmosinity
@cosmosinity 3 ай бұрын
For some reason, the bot won't go offline, how do i make it go offline??
@SMHTEAM24
@SMHTEAM24 Ай бұрын
Brother whenever I'm trying to print the Token it's printing out None....Do you know the reason?
@diegojose3863
@diegojose3863 6 ай бұрын
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 5 ай бұрын
Me too! did you find a fix? let me know please! thanks.
@sandwichs8592
@sandwichs8592 Ай бұрын
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.
@reaperdreamer8082
@reaperdreamer8082 2 ай бұрын
My venv is not showing up. I've searched everywhere and I still don't know why. Anyone have a solution?
@vishalgreat5154
@vishalgreat5154 2 ай бұрын
When I run the code. It has no result. What should I check
@sabatin056nn
@sabatin056nn Ай бұрын
i have problem in dotenv , He says there is an error in this word (dotenv)
@EnglishEatTheNoob
@EnglishEatTheNoob 7 ай бұрын
good video
@corbinalt1773
@corbinalt1773 3 ай бұрын
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?
@luckofgaming930
@luckofgaming930 2 ай бұрын
Somehow dotenv doesnt work in my case can anyone help me?
@redluigi2020
@redluigi2020 Ай бұрын
pip isnt working for me do i have to download something for it?
@ElmVanO
@ElmVanO 7 ай бұрын
keep getting the error no module named dotenv
@carterlewkowski9126
@carterlewkowski9126 6 ай бұрын
Did you run the pip install python-dotenv command?
@lasel2630
@lasel2630 3 ай бұрын
This tutorial is outdated. The developer portal has already changed!!!!!!!
@jennathekitsune6456
@jennathekitsune6456 2 ай бұрын
You’re joking
@embritton4814
@embritton4814 2 ай бұрын
@@jennathekitsune6456 Im crying rn
@sidnotthesloth1827
@sidnotthesloth1827 Ай бұрын
Has it? I did this yesterday and I was able to do everything he said.
@user-st2yn9ve1t
@user-st2yn9ve1t 23 күн бұрын
uhm scroll down just a little bit
@yoimiyasimpu8757
@yoimiyasimpu8757 2 ай бұрын
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
@ELITETROLLMAN
@ELITETROLLMAN 2 ай бұрын
REPLIT IS BETTER TO HOST
@fly-lioxit0
@fly-lioxit0 5 ай бұрын
How can I make it to show the commands available like any other discord bot?
@szymetrix5946
@szymetrix5946 5 ай бұрын
from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' help me
@koro6072
@koro6072 5 ай бұрын
did you do pip install for dotenv?
@Neoneedx
@Neoneedx 4 ай бұрын
Thank you so much, I did not install it ​@@koro6072
@ayam3330
@ayam3330 6 ай бұрын
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 😢
@Kill_mepleas3
@Kill_mepleas3 5 ай бұрын
I tried to gave it the permissions it didnt let me and sent me to a website that said "page not found".
@chartingwithliv
@chartingwithliv 4 ай бұрын
from dot_env import load_dotenv ModuleNotFoundError: No module named 'dot_env'
@petermakhoul8127
@petermakhoul8127 4 ай бұрын
same
@joshuawiley6506
@joshuawiley6506 4 ай бұрын
same! @@petermakhoul8127
@epicyoda.
@epicyoda. 3 ай бұрын
SAME did you guys find a solution?
@PuneetSinha-gb8ri
@PuneetSinha-gb8ri 4 ай бұрын
Could you please help URL generator is not visible for me
@ItzClinky
@ItzClinky 5 ай бұрын
pip is not working for me what else can I use?
@n1N0v8
@n1N0v8 7 ай бұрын
for some reason when I run nothing happens at all
@Sslifer01
@Sslifer01 3 ай бұрын
Well my bot is not running.
@Oksamokki
@Oksamokki 3 ай бұрын
mine says : cdc is not defined.
@GAMINVR
@GAMINVR 2 ай бұрын
how do i make the bot send a image
@Haa_di
@Haa_di Ай бұрын
can you please make a video on makin whatsapp chatbot
@user-dq7wo8bn2w
@user-dq7wo8bn2w 7 ай бұрын
why does it say all of my messages are empty ?
@aDushandrii
@aDushandrii 7 ай бұрын
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 7 ай бұрын
well you are basically defining the TYPE of that variable you are mentioning
@zerodrip669
@zerodrip669 6 ай бұрын
it's a discord/api thing lol. "lowered: str", however, is simply declaring the variable type for `lowered`.
@Gamer-XO
@Gamer-XO 4 ай бұрын
I am not understanding anything
@LiterallyTIM
@LiterallyTIM 7 ай бұрын
im doing this on replit. would there be any difference?
@saggybelt
@saggybelt 7 ай бұрын
secret instead of .env
@1apostoli
@1apostoli 7 ай бұрын
Twitter bot next
@Indently
@Indently 7 ай бұрын
I'm not going anywhere near these Elon Musk products xD
@1apostoli
@1apostoli 7 ай бұрын
LMAO@@Indently
@Blueshow.
@Blueshow. 6 ай бұрын
Can someone help me?
@cuoreribelle4584
@cuoreribelle4584 3 ай бұрын
hi, but is it also possible to send a ddos ​​attack?
@sandwichs8592
@sandwichs8592 Ай бұрын
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.
@zerodrip669
@zerodrip669 6 ай бұрын
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
@chandusharma205
@chandusharma205 7 ай бұрын
nxt part when?
@TeclisIluminador
@TeclisIluminador 2 ай бұрын
Nice video!!!
@johnny_bravo5633
@johnny_bravo5633 6 ай бұрын
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
@johnny_bravo5633
@johnny_bravo5633 6 ай бұрын
pls help as quick as possible
@POGranola
@POGranola 6 ай бұрын
whenever you did "pip install python-dotenv" on the cmd, if did a message pop up saying that it wasn't in your path?
@SaintsPurgatory
@SaintsPurgatory 3 ай бұрын
20 minutes to respond to users? You apparently need to work on your descriptions for your vods.
@Indently
@Indently 3 ай бұрын
I don't know what else a chat bot is supposed to do if not "respond to users" lmao
@meowecat
@meowecat 12 күн бұрын
@@Indently 20 minutes?
@Spngie
@Spngie 3 ай бұрын
what program are you using for this
@FlyingFrets
@FlyingFrets 3 ай бұрын
looks like visual studio code
@Sushi-wp8mg
@Sushi-wp8mg 3 ай бұрын
he is using PyCharm
@eliYVL
@eliYVL 7 ай бұрын
how do you enable the local tab? i only see terminal, debug console, problems, output, ports.
@krishnapathak292
@krishnapathak292 5 ай бұрын
it says NONE for print(TOKEN)
@Little_Lalo
@Little_Lalo 5 ай бұрын
same
@Mystic-jj9kg
@Mystic-jj9kg 5 ай бұрын
Hi, my bot only responds in private messages. Is this because I am using visual studio code or?
@Hamza-Alnameri
@Hamza-Alnameri 7 ай бұрын
I need a whatsapp bot
@Indently
@Indently 7 ай бұрын
FaceBook is really strict about it and makes copyright claims if you make a tutorial, my tutorials were removed by FaceBook, so it's never going to happen unfortunately.
@icyman11_26
@icyman11_26 3 ай бұрын
w video
@pimpomp1
@pimpomp1 3 ай бұрын
line 13, in intents.message.content = True # NOQA ^^^^^^^^^^^^^^^ AttributeError: 'Intents' object has no attribute 'message'. Did you mean: 'messages'? PS C:\Users\valmirgamer\Desktop\Nova pasta>
@FilenameBliz
@FilenameBliz 5 ай бұрын
I would use Pychamp but its paid 😅
@codereboot9765
@codereboot9765 3 ай бұрын
My program raise NotImplementedError
@IceVR_
@IceVR_ 6 ай бұрын
YOU SAID PYTHON
@zerodrip669
@zerodrip669 6 ай бұрын
it's in python brother
@Incognito-ru9hk
@Incognito-ru9hk 6 ай бұрын
@@zerodrip669 no its not this is java
BEST Practises For SIMPLE Benchmarks In Python
8:30
Indently
Рет қаралды 9 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 64 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 17 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
Magic? 😨
00:14
Andrey Grechka
Рет қаралды 20 МЛН
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 14 МЛН
This must have been tough... #MattHaig #HappyPlace #FearneCotton
0:36
Fearne Cotton's Happy Place
Рет қаралды 1 М.
Why Framework ?
0:44
Telusko
Рет қаралды 29 М.
Developer Badge Tutorial | 2024 Updated
3:59
ItzMeWaffy
Рет қаралды 32 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 298 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 17 МЛН