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.
@Indently11 ай бұрын
Glad I could help!
@Overlycomplicatedswede8 ай бұрын
Jag är så glad, folk som dig är göra guider för python liksom andra kodning språk! Kärlek från Sverige!
@Indently8 ай бұрын
Kul att se en svensk i kommentarerna, jag håller på att lära mig svenska just nu :)
@Overlycomplicatedswede8 ай бұрын
@@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-lg7cw11 ай бұрын
Thank you so much for this tutorial, I followed along and created my own Discord Bot!
@Indently11 ай бұрын
Glad it helped!
@Q.Roo_011 ай бұрын
I have never heard of the walrus operator. Just that alone made watching this video worth my while.
@terribletimmy29 ай бұрын
Recent addition to Python! Just learned about it as well
@tjb31718 ай бұрын
same lol
@artnaz6 ай бұрын
I believe it was introduced in Python 3.8. Not that "recent" 🙂
@Issma626 ай бұрын
Literally the same 😂🤔
@TheOnlyCurd10 ай бұрын
This helped me a lot thank you.Keep up the work it really high quality
@ivyw7778 ай бұрын
I made it!🙂Thank you. I got my first bot running.
@sSessionn11 ай бұрын
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
@DanielTheOcto9 ай бұрын
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
@ilikecreeper3317 ай бұрын
how's coding for you now?
@DanielTheOcto6 ай бұрын
@@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
@ilikecreeper3316 ай бұрын
@@DanielTheOcto well you’ll get there Speaking of discord bots I’m learning how to build one with python recently too
@embs48146 ай бұрын
@@DanielTheOcto WOuld you mind explaining how you got over the pip install issues? I cant find anything.
@DanielTheOcto6 ай бұрын
@@embs4814 unfortunately I do not remember
@sarojmaharjan39864 ай бұрын
This tutorial is by far the most useful one for starting a general simple discord bot! Really appreciate it. Thank you !
@hustlej10 ай бұрын
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.10 ай бұрын
super cool, good luck with your coding journey!
@dzelezny3 ай бұрын
hey, how is your journey going?
@CooperStaz3 ай бұрын
Great video! Especially for programmers who are just getting into their programming journey.
@alejandroperezl11 ай бұрын
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.
@Indently11 ай бұрын
A huge thanks for the support! It means a lot!:)
@chanlers7 ай бұрын
literally the best tutorial ever... worked like a charm. thank you!!
@developer_anonymous7 ай бұрын
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
@ClaireNighten4 ай бұрын
This is amazing! thank you for such a lovely tutorial!
@ravenlb11 ай бұрын
Great job, well presented - thanks!
@ProjectMarzDev6 ай бұрын
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!
@kiss691711 ай бұрын
Thank you for this so much! Now I am well on my way to creating an AI chatbot using python for discord!
@Indently11 ай бұрын
Glad it helped!
@thebetsnameverlol153110 ай бұрын
followed the tutorial but the bot doesn't response in the channel, only private messages. can you help?
@FousmanFous7 ай бұрын
I made my first bot , i will say big thank you for all! ❤
@justinserota34064 ай бұрын
Awesome tutorial, thank you!
@korneldekany66894 ай бұрын
This was realy helpful thanks!
@__fiamyАй бұрын
thanks! great tutorial
@IndentlyАй бұрын
Glad it was helpful!
@LearnwithChampzz-rv4lk7 ай бұрын
Nicely presented!
@DynastyRealism8 ай бұрын
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?
@shrijitmajumder44115 ай бұрын
Thanks for this awesome project
@LukasCarrein5 ай бұрын
14:11 why dont you use " instead of ' it means you dont have to do the \
@kongle873711 ай бұрын
when I try to make the .env file it just turns into a text file and everything in it is gray and doesnt work
@joewipat54528 ай бұрын
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
@Qdbp-sh5ti9 ай бұрын
Im print "TOKEN", but the out is: "None"
@josephsalazar60966 ай бұрын
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
@sandwichs85926 ай бұрын
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.
@vrajved6 ай бұрын
@@sandwichs8592 could youhelp me out? i have it installed but ModuleNotFoundError: No module named 'dotenv' error keeps persisting
@st4rtechofficial5 күн бұрын
@@sandwichs8592 thanks, I had the same problem and didn't know I should've installed it... but know it works :)
@cristiangaming501911 ай бұрын
I tried your code and i got a error on line 5 theres no module named discord
@Jaden_YaLor11 ай бұрын
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 :|
@ECThrowaway11 ай бұрын
Look up what pip is, it will change the way you code
@st_927810 ай бұрын
Also you need to have pip installed firstly
@fly-lioxit09 ай бұрын
How can I make it to show the commands available like any other discord bot?
@PengKun-py7md10 ай бұрын
tanks this video a lot. ❤you can't believe how long i debug my program just because missing click message content
@bmaify10 ай бұрын
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.
@itzbazil25869 ай бұрын
What was your fix?
@szymek36529 ай бұрын
what was it?
@ezirimkingdom2 ай бұрын
Thanks alot, this really helped. How do i host it, so it keeps running?
@lildigy217515 күн бұрын
I'm so mad it isn't working the terminal is blank whenever i try to run it please advise on a solution.
@m7mdnho15410 ай бұрын
New into bots and python. Thanks for the tutorial 🩷
@maexle1411 ай бұрын
Can you make a tutorial, how to add slash commands to THIS Version of a Discord Bot? But good job, thanks
@idonthaveideaofname.-.52812 ай бұрын
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"
@lukaskjekken331311 ай бұрын
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.
@memze11489 ай бұрын
ask chatgpt
@SynthStep204 ай бұрын
I need help!! When running the code at main() it says "ImportError: cannot import name 'get_response' from 'responses'"
@meowecat4 ай бұрын
I have that too
@rawsnot4 ай бұрын
When I run my program I don't get the red messages.
@marcodegner759910 ай бұрын
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'
@Zumbisinho8 ай бұрын
Do you put in the terminal "pip install python-dotenv"?
@Neqless8 ай бұрын
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
@ghostshotxx6005Ай бұрын
from dotenv import load_dotenv isnt working it says ImportError: cannot import name 'load_dotenv' from 'dotenv'
@yoimiyasimpu87576 ай бұрын
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
@lainp1lledd11 ай бұрын
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!!
@caeleng555311 ай бұрын
Great video! I am a bit confused what the .venv file is for though?
@bartuslongus8 ай бұрын
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.
@shreyaanshpurohit92922 ай бұрын
yo, i got an error saying its an ssl error, how do i fix, i am on MacOS 15 Python 3.13
@diegojose386310 ай бұрын
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
@klaft52289 ай бұрын
Me too! did you find a fix? let me know please! thanks.
@sandwichs85926 ай бұрын
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.
@Zai_sssss9 ай бұрын
I tried to gave it the permissions it didnt let me and sent me to a website that said "page not found".
@BruvCode7 ай бұрын
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"
@그러나-c7b9 ай бұрын
there is no get_response(function) :
@SWJaeTee4 ай бұрын
I code in C# and that Walrus operator blew my mind
@ayushlamsal704410 ай бұрын
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
@corbinalt17737 ай бұрын
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?
@TeclisIluminador7 ай бұрын
Nice video!!!
@redluigi20205 ай бұрын
pip isnt working for me do i have to download something for it?
@113052052194 ай бұрын
what is the between pip install discord and discordpy
@cxzirey4 ай бұрын
thanks man
@szymetrix59469 ай бұрын
from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' help me
@koro60729 ай бұрын
did you do pip install for dotenv?
@Neoneedx9 ай бұрын
Thank you so much, I did not install it @@koro6072
@vishalgreat51547 ай бұрын
When I run the code. It has no result. What should I check
@avosc53169 ай бұрын
Thanks!
@cocbeanj24196 ай бұрын
my bot just never responds, ive gone through tut twice now and it just ignores me
@sabatin056nn6 ай бұрын
i have problem in dotenv , He says there is an error in this word (dotenv)
@ItzClinky9 ай бұрын
pip is not working for me what else can I use?
@cosmosinity8 ай бұрын
For some reason, the bot won't go offline, how do i make it go offline??
@jonnyaepmp410 ай бұрын
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
@jonnyaepmp410 ай бұрын
pls help as quick as possible
@POGranola10 ай бұрын
whenever you did "pip install python-dotenv" on the cmd, if did a message pop up saying that it wasn't in your path?
@mustafauludogann11 ай бұрын
Thank you
@reaperdreamer80826 ай бұрын
My venv is not showing up. I've searched everywhere and I still don't know why. Anyone have a solution?
@chartingwithliv8 ай бұрын
from dot_env import load_dotenv ModuleNotFoundError: No module named 'dot_env'
@petermakhoul81278 ай бұрын
same
@joshuawiley65068 ай бұрын
same! @@petermakhoul8127
@epicyoda.7 ай бұрын
SAME did you guys find a solution?
@luckofgaming9306 ай бұрын
Somehow dotenv doesnt work in my case can anyone help me?
@PuneetSinha-gb8ri9 ай бұрын
Could you please help URL generator is not visible for me
@ayam333010 ай бұрын
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 😢
@kthefreak4 ай бұрын
Im 12 y/o and this helped me a lot ,thanks!
@mofiro67583 ай бұрын
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.
@affleckverse49952 ай бұрын
Yeh exactly its sometimes hard for me as i am a beginner to python
@SMHTEAM245 ай бұрын
Brother whenever I'm trying to print the Token it's printing out None....Do you know the reason?
@달영혼Ай бұрын
make sure your .env file has the token in there still
@AnonymousGaming6942011 ай бұрын
good video
@Konatoast5 ай бұрын
doesnt work anymore i tried it, also wrong discord import
@GAMINVR7 ай бұрын
how do i make the bot send a image
@n1N0v811 ай бұрын
for some reason when I run nothing happens at all
@Oksamokki8 ай бұрын
mine says : cdc is not defined.
@lewie8136Ай бұрын
Theres no option to allow the bot to read messages as shown in your video
@BigEmster21 күн бұрын
it was renamed to "view channels"
@lewie813620 күн бұрын
@@BigEmster thanks
@Spngie7 ай бұрын
what program are you using for this
@FlyingFrets7 ай бұрын
looks like visual studio code
@Sushi-wp8mg7 ай бұрын
he is using PyCharm
@Tims2kool11 ай бұрын
im doing this on replit. would there be any difference?
@saggybelt11 ай бұрын
secret instead of .env
@cuoreribelle45847 ай бұрын
hi, but is it also possible to send a ddos attack?
@sandwichs85926 ай бұрын
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.
@M1lesSeen_Y0u5 ай бұрын
It updated again!
@aDushandrii11 ай бұрын
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.
@lelouchlamperouge367611 ай бұрын
well you are basically defining the TYPE of that variable you are mentioning
@zerodrip66910 ай бұрын
it's a discord/api thing lol. "lowered: str", however, is simply declaring the variable type for `lowered`.
@TeamEliteFG3 ай бұрын
i thought env was only for js
@ElmVanO11 ай бұрын
keep getting the error no module named dotenv
@carterlewkowski912611 ай бұрын
Did you run the pip install python-dotenv command?
@samukaze58105 ай бұрын
At this point PyCharm is sponsored by Indently 💀
@Sslifer017 ай бұрын
Well my bot is not running.
@Wallee58011 ай бұрын
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"?
@1apostoli11 ай бұрын
Twitter bot next
@Indently11 ай бұрын
I'm not going anywhere near these Elon Musk products xD
@1apostoli11 ай бұрын
LMAO@@Indently
@Mystic-jj9kg9 ай бұрын
Hi, my bot only responds in private messages. Is this because I am using visual studio code or?
@krishnapathak29210 ай бұрын
it says NONE for print(TOKEN)
@Little_Lalo9 ай бұрын
same
@ewmc2Ай бұрын
doesnt work
@Haa_di5 ай бұрын
can you please make a video on makin whatsapp chatbot