i have to say that after 6 hours of swearing, searching up everything i can on the internet, restarting my computer; PyCharm, IDLE, re-downloading everything, changing PATH, crying internally, eventually taking a break to comfort feed myself and trying AGAIN doing NOTHING DIFFIRENTLY, i finally managed to get the damn thing to go online. i now see a) all those memes are true and b) why companies provide you with gym memberships. goddamnit. thank you so much for this tutorial. i’m only starting out on my programming journey and it’s already proving to require much more patience than dealing with karens. i might start missing the karens at some point i s2g.
Thanks for helping out us (beginners). I was searching for this kind of video which will help me to get started with discord. I do the automation tasks, and I am only able to run on them on my computer. Now you became my teacher to show a path to send my bots into the web. Thanks for your valuable time to make this video.
3:26 a simpler way to invite your bot will be to go in you application then go on thing that says oauth2, then go on scroll down till you see scopes, then press bot in the scopes section, then give your bot the permissions it needs, the copy the invite url.
This is a great tutorial for beginner programmers and discord.py. In this comment I'll explain some things that could be optimized, Instead of doing if str(message.author) == "some name#0001" you could do if message.author == message.author same with where she put "hello" + str(message.author) + "!" instead of that you could use formatted strings: f"Hello {message.author}!" all around a good tutorial in my opinion. Also I highly suggest coming from discord.js putting all sensitive information in another file like a json file or .env file so you don't have your token as a string in your code. It's very unsecure incase you are screensharing in Discord or sharing your project on GitHub. Happy coding!
If you are on Windows, go to slproweb.com/products/Win32OpenSSL.html
Go down to the "Download Win32/Win64 OpenSSL" section Click on Win64 OpenSSL v1.1.1h Light ( 3MB installer not 63MB installer) (EXE version not MSI version) Follow the steps properly (mostly just keep saying yes and going along with what is recommended) and SSL certificate will be installed for you. Note: When it asks for donations unselect any donation options if you don't want to pay money. Try the command: py -3 -m pip install -U discord.py[voice] and it should work this time for you. Source: URL: stackoverflow.com/questions/41328451/ssl-module-in-python-is-not-available-when-installing-package-with-pip3/54932141#54932141?newreg=cba9d9b66f6a4252a11a8c4e518d36d5 Credits go to user juengi
C:\Users\vande\PycharmProjects\Discord Bot\venv\Scripts\python.exe: can't find '__main__' module in "D:/video's/Bots" this is what my error is please help
so this also works for 3.8 for mac users if your getting a ssl error go into the applications folder click on 3.8 then click on install the certificate once you click it it will prompt a terminal window installing it after that if your getting any issues check if the interpeter is on 3.8 if not change it and thats how you can get the bot up and running :D
Hello! I am going to address some common errors that I am seeing in the comments. Hope this helps! 1. 'touch' command not working To make the python file on Windows use the command: notepad filename.py 2. SSL Certificate failed Mac: To fix this, go to Applications/Python 3.6/ and open the file called 'Install Certificates.command' Windows: This thread shows how to fix this problem github.com/Rapptz/discord.py/issues/4159#issuecomment-636386921
@@ramadhanisaputra9953 I found this thread showing how to fix the SSL certificate problem on windows. I hope this helps! github.com/Rapptz/discord.py/issues/4159#issuecomment-636386921
Luke M i worked it out. i tried reinstalling everything (python, pip etc.) and eventually got it working. pretty sure it’s something wrong with the installation.
If you don't need your bot to do anything with Voice Channels, then you should be fine using the discord.py library you already have installed. If you want voice functions for your bot, then copy and paste the error in a reply so I can help you :)
@@RoboticNation Oh, ok! Thank you very much. I tried the discord.py library on my mac, but it didn't work.I wasn't able to download 3.6 on it. I am using my older windows to do this. Thank you for the help and quick reply!
I have a question, how can I go about setting up a new bot to simply put a desired message in one of my channels, and have it say whatever I want, including emojis?
It depends on how you want the bot to do this. If you want a message to be sent when the bot starts up (goes online), you can use the on_ready() function. If you are looking to have your bot send messages based on what you type, then it will be a bit more complicated, but I can show you. I'm a bit confused on what you exactly want to do, so if you give me more information I'll be happy to help you!
i tried to install python.py via command prompt but it just says "ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python39\\Scripts\\chardetect.exe' -> 'C:\\Python39\\Scripts\\chardetect.exe.deleteme'" what does this mean and what should i do?
9:51 i did install it locally but when i run it it says "No module named 'discord'" im on windows and using python 3.8 if anyone could help please do it would really mean so much.
I'm on python 3.8 and it works fine for me. I downloaded it by typing "pip install discord" or use "pip install discord.py" or "pip install discord_py" they all give you it
at 11:20 , I get an error message saying: Traceback (most recent call last): File "C:/Users/Client/Desktop/DiscordBot/DiscordCalender.py", line 3, in client = discord.client() TypeError: 'module' object is not callable
I'm trying to make a bot which also functions as a web crawler script, do you reckon that'll work? My bot needs to read a webpage every so often and send updates if there's a change in the webpage. Should I make a separate script which opens the Bot script when it recognises the change, or can I combine the two?
Finally got the bot to accept all case-versions of "hello". But when prompted with "Hello", the bot duplicates the response message and sends the greeting twice. Any ideas?
for the "touch {botname}.py it says "'touch' is not recognized as an internal or external command, operable program or batch file." im on windows, what do i do?
Hey, Can You Make A Tutorial on Sending GIFs For Example: (blk is the Prefix) and Someone Types blk dance and then You Need to Search for A Dance GIF! It Would Be Pretty Cool Honestly! Thanks!
I did everything the same but the bot wouldn't be online. It doesn't say that i have any problems other than 2 typo's in the part where i paste the token from the bot (it isn't the ' ' or () just the random letters). For reference i am on Python 3.8 and Windows.
hello i was wondering how you could get the bot to search for particular words in a message nomatter where they are. i have looked on the doc but i cant find anything like it
touch test-bot.py doesnt work for me idk why it says touch : The term 'touch' is not recognized as the name of a cmdlet, function, script f ile, or operable program. Check the spellin g of the name, or if a path was included, v erify that the path is correct and try agai n. At line:1 char:1 + touch test-bot.py + ~~~~~ + CategoryInfo : ObjectNotFou nd: (touch:String) [], CommandNotFound Exception + FullyQualifiedErrorId : CommandNotFo undException
Hi, So currently i'm on zsh on terminal, and try to get running the command- "python3 -m pip install -U discord.py[voice]", but it respond with- zsh: no matches found: discord.py[voice] Anyone know why?
For all those user who don't want to or know which ide to use and install discord.py Use repl.it website. It will provide everything you need and you just need to write the code. As it is open source your code will be available and so your token so watch some youtube tutorials regarding that.
my python version is 3.8. in terminal it is showing "zsh: no matches found: discord.py[voice]" and this msg" You are using pip version 19.2.3, however version 20.2.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command." nedd help ASAP
Im on Windows but when i type "touch *name of the folder* .py it says 'touch' is not recognized as an internal or external command, operable program or batch file. Help. Edit: Nevermind i found it T_T.
Traceback (most recent call last): File "D:\lib unpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\lib unpy.py", line 86, in _run_code exec(code, run_globals) File "C:/Users/sofro/OneDrive/Desktop/HellenicBot\__main__.py", line 6, in from . import _test as main ImportError: attempted relative import with no known parent package Process finished with exit code 1
Cedistic try to run the command inside the main folder your are in. I made this mistake but when I ran the command in the project folder it recognized the library
Am I being really stupid? Please help ASAP! if message.content.startswith("test"): IndentationError: unindent does not match any other indentation level
i have to say that after 6 hours of swearing, searching up everything i can on the internet, restarting my computer; PyCharm, IDLE, re-downloading everything, changing PATH, crying internally, eventually taking a break to comfort feed myself and trying AGAIN doing NOTHING DIFFIRENTLY, i finally managed to get the damn thing to go online.
i now see a) all those memes are true and b) why companies provide you with gym memberships.
goddamnit.
thank you so much for this tutorial. i’m only starting out on my programming journey and it’s already proving to require much more patience than dealing with karens. i might start missing the karens at some point i s2g.
lmfaoooo ikr
i cant get dis code to work
Connor damn man i feel for you fr😂 good luck!!
I've only done the first 3 lines and it won't go online
I tried to import discord but it didn't work with the terminal either so it created a package when I hovered over it and clicked on what it said to do
Just for clarification. It, in fact, works for 3.8, if you're on Windows!
TotemThePole ok, great! Thank you for verifying!
How did you get it to work. Mine is not working and I'm getting a "Cannot connect to host discordapp.com:443 SSL:"
@@alexanders2654
Sectigo (cert vendor) provides a download link of cert manually:
crt.sh/?id=2835394
Thank you man. I was looking for this comment
@@joxa4904 omaigoodd thank you very much!!!!
Thanks for helping out us (beginners). I was searching for this kind of video which will help me to get started with discord. I do the automation tasks, and I am only able to run on them on my computer. Now you became my teacher to show a path to send my bots into the web.
Thanks for your valuable time to make this video.
she :
hello
tutorial bot:
hello
Me :
Hey
My Bot:
......
Guess the bot is a simp.
LMAOAOAOAOA
100th like!
same
3:26 a simpler way to invite your bot will be to go in you application then go on thing that says oauth2, then go on scroll down till you see scopes, then press bot in the scopes section, then give your bot the permissions it needs, the copy the invite url.
Worked best video ever on how to make a discord bot. Literally took me HOURS to find a good place to start. Thank you for the epic content!!!
The Way You Made The Bot Invite Makes Me Super Man Theres A Feature For That!!
5:53 you can also type "pip3 install discord.py"
This saved me; thank you :)
You are a lifesaver
nice dude!!!!
bro it's trynna make me install gas or something and it keeps failing rip
you are a god
This is a great tutorial for beginner programmers and discord.py. In this comment I'll explain some things that could be optimized, Instead of doing if str(message.author) == "some name#0001" you could do if message.author == message.author same with where she put "hello" + str(message.author) + "!" instead of that you could use formatted strings: f"Hello {message.author}!" all around a good tutorial in my opinion.
Also I highly suggest coming from discord.js putting all sensitive information in another file like a json file or .env file so you don't have your token as a string in your code. It's very unsecure incase you are screensharing in Discord or sharing your project on GitHub. Happy coding!
Works fine as well with Python 3.8 on Mac, great tutorial!
Nice! I use Linux for daily usage and programming, it works great.
thanks, this actually helped a lot
OMG I WAS TRYING TO FIGURE THIS OUT FOR LIKE 5 HOURS WTF THANK YOU
literally me
This was the most helpful video I found for making a bot. Thank youuuu
Glad it helped!
i got ur 500th like!!!
You should def continue this i love your stuff tysm!
Just subscribed! I learn much from you. Thank you
7:21, my one doesn't recognize "touch"
Same
same, any solution?
@@BriskPlayz What os are you using?
it dosent work on windows you have to create a file in your ide
Same how do i fix
How do you install certificates on windows computer
Same
If you are on Windows, go to slproweb.com/products/Win32OpenSSL.html
Go down to the "Download Win32/Win64 OpenSSL" section
Click on Win64 OpenSSL v1.1.1h Light ( 3MB installer not 63MB installer) (EXE version not MSI version)
Follow the steps properly (mostly just keep saying yes and going along with what is recommended) and SSL certificate will be installed for you. Note: When it asks for donations unselect any donation options if you don't want to pay money.
Try the command: py -3 -m pip install -U discord.py[voice]
and it should work this time for you.
Source:
URL: stackoverflow.com/questions/41328451/ssl-module-in-python-is-not-available-when-installing-package-with-pip3/54932141#54932141?newreg=cba9d9b66f6a4252a11a8c4e518d36d5
Credits go to user juengi
C:\Users\vande\PycharmProjects\Discord Bot\venv\Scripts\python.exe: can't find '__main__' module in "D:/video's/Bots" this is what my error is please help
same bro
Same
tysm! first tutorial without somehow messing it up :)
so this also works for 3.8 for mac users
if your getting a ssl error go into the applications folder click on 3.8 then click on install the certificate once you click it it will prompt a terminal window installing it after that if your getting any issues check if the interpeter is on 3.8 if not change it and thats how you can get the bot up and running :D
THANK YOU SO MUCH I INSTANTLY SUBSCRIBED (no jokes seriously thanks ;))))))))))))))))))) )
Hello! I am going to address some common errors that I am seeing in the comments. Hope this helps!
1. 'touch' command not working
To make the python file on Windows use the command: notepad filename.py
2. SSL Certificate failed
Mac: To fix this, go to Applications/Python 3.6/ and open the file called 'Install Certificates.command'
Windows: This thread shows how to fix this problem github.com/Rapptz/discord.py/issues/4159#issuecomment-636386921
I'm on Windows and this second error occurs
8:40 I cant change it off of Python 3.8
SSL Certificate failed, is happening to me too, idk how to fix it, I'm in Windows 10 and using Python 3.8, pls help
@@ramadhanisaputra9953 I found this thread showing how to fix the SSL certificate problem on windows. I hope this helps! github.com/Rapptz/discord.py/issues/4159#issuecomment-636386921
What do u mean use the command do i put that in the Cmd or
half way through the video and everything has worked so far. this tutorial is great so far ^_^
Thanks! I learned a new variable from you 'lower()' thought it might be basic i'm still a beginner XD,
thank you! really precise info to get the bot going
10:11 i can't import discord it says "unused import statement 'import discord' "
same problem
@@lukem6241 same
@@aerielleb6901 I've tried everything im on windows 8 and using python 3.8 the only thing left is to try python 3.6 and maybe that will work.
Luke M i worked it out. i tried reinstalling everything (python, pip etc.) and eventually got it working. pretty sure it’s something wrong with the installation.
@@aerielleb6901 what version of python are you using?
11:28 at this moment i was so happy none of my bots came online but this time it came tysm🙏
Please make more Alexa, they are very informative. Keep up the good work!
7:30 I am on Windows and this doesnt work on cmd and i have no idea how to do it without it
To create a new file, you can use the GUI to create the python file in that directory. Alternatively, in CMD, you can do:
echo > test-bot.py
when i run the bot to see if there a problem i had a problem that says can't find '__main__' module in
same, did you find any solutions?
Just make the working directory either your code or the script file
I cant install discord.py[voice], but I already have discord.py installed.
The voice thing shows some error
If you don't need your bot to do anything with Voice Channels, then you should be fine using the discord.py library you already have installed. If you want voice functions for your bot, then copy and paste the error in a reply so I can help you :)
@@RoboticNation Oh, ok! Thank you very much. I tried the discord.py library on my mac, but it didn't work.I wasn't able to download 3.6 on it. I am using my older windows to do this. Thank you for the help and quick reply!
Try running prompt as administrator. This fixed my issue with discord.py[voice]
I have a question, how can I go about setting up a new bot to simply put a desired message in one of my channels, and have it say whatever I want, including emojis?
It depends on how you want the bot to do this. If you want a message to be sent when the bot starts up (goes online), you can use the on_ready() function. If you are looking to have your bot send messages based on what you type, then it will be a bit more complicated, but I can show you. I'm a bit confused on what you exactly want to do, so if you give me more information I'll be happy to help you!
@@RoboticNation do you have discord?
ImCollinator I do not have a discord for this channel but I do have a personal discord
@@RoboticNation get back to me- Cazix#1962
To make it say what you want, you could use (ctx, *, args) which will repeat what you said
i tried to install python.py via command prompt but it just says "ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python39\\Scripts\\chardetect.exe' -> 'C:\\Python39\\Scripts\\chardetect.exe.deleteme'" what does this mean and what should i do?
SUPER HELPFUL THIS HELPED ME
HELP THE TOUCH COMMAND FOR ME ISNT WORKING 7:17 im using windows 10
@@josephchoo6760 I already got it thanks and now I made a mass ping bot for nuking servers
Yay I get to make my own bot now my bot will play music and all that cool stuff
super helpful, you're awesome
i got an error 'touch' is not recognized as an internal or external command,
operable program or batch file.
same
Same here 😢😢
Check the comments.....another guy is having this problem he got a solution from the creator of the video. I find it
This video really helped me, thanks
4 minutes in... thank you SO much for making such an easy-to-follow tutorial! :) this is so damn helpful right now
9:51 i did install it locally but when i run it it says "No module named 'discord'" im on windows and using python 3.8 if anyone could help please do it would really mean so much.
she says you are supposed to used python 3.6 if that helps
I'm on python 3.8 and it works fine for me. I downloaded it by typing "pip install discord" or use "pip install discord.py" or "pip install discord_py" they all give you it
nice vid man! keep it up
I installed discord.py to pycharm but it said that "could not build wheels for multidict which use PEP 517 and cannot be installed directly" pls help
try `pip install discord.py` in your CMD
Install visual c++
Also install the build tools it is a big ass file tho
6:42 the pycharm install widget has 441MB
HALF A GIGABYTE?
Imma keep it 100 with you that shit helped a lot
at 11:20 , I get an error message saying:
Traceback (most recent call last):
File "C:/Users/Client/Desktop/DiscordBot/DiscordCalender.py", line 3, in
client = discord.client()
TypeError: 'module' object is not callable
it's not client it's Client
@Robotic Nation I can't install Python 3.6 on my mac! can i use python 3.8 ?
Hey, you might need to check if there's any other versions of 3.6, just make sure there is 3.6 included in the version
5 months late but try 3.7 instead
Why i cant download python 3.6.10?
when i go to 3.6.10 download it just brings another page up doesnt download help
Same here. I don't know what to do!
@@kendallr.5482 Same
Touch is for Linux
I'm trying to make a bot which also functions as a web crawler script, do you reckon that'll work? My bot needs to read a webpage every so often and send updates if there's a change in the webpage. Should I make a separate script which opens the Bot script when it recognises the change, or can I combine the two?
Hey alexa you should add music in the background. makes the video more enjoyable.
Thanks for the video sis
I need help when I do touch then my bot name it shows up as touch isnt a command
on windows use type null > bot.py
@@dejanok5511 that doesnt work either
@@almostxjp search on stackoverflow
I downloaded 3.8.2 on windows 10. How can I open python so that its a python app not cmd prompt?
You have to search for "IDLE" in the start menu. The "Python" program itself doesnt do anything.
Finally got the bot to accept all case-versions of "hello". But when prompted with "Hello", the bot duplicates the response message and sends the greeting twice. Any ideas?
please help, i've followed all the steps but when i try to run it it says "AttributeError: module 'discord' has no attribute 'Client'"
Use repl.it , it works
8:34 python 3.6 isnt showing up
same issue
DreeGen 7248 same issue try visual studio code
ash Did it work on VSC for you?
1. That's just for Mac0s/Linux
2. You might not have downloaded 3.6 Python
create a new porject and browse to the right python 3.6 directory
for the "touch {botname}.py it says "'touch' is not recognized as an internal or external command,
operable program or batch file." im on windows, what do i do?
@Rebecca Hester if you find out just let me know, i will also. i've been looking at it for a few days now
File "", line 1
python3 -m pip install -U discord.py[voice]
^
SyntaxError: invalid syntax
make sure your using the right code for your OS, if your on windows its `py -3 -m pip install -U discord.py[voice]
`
Hey, Can You Make A Tutorial on Sending GIFs For Example: (blk is the Prefix) and Someone Types blk dance and then You Need to Search for A Dance GIF! It Would Be Pretty Cool Honestly! Thanks!
Nice and clear, keep it up.
The hello message don't work
import discord
client = discord.Client()
@client.event
async def on_messsage(message):
message.content.lower()
if message.author == client.user:
return
if message.content.startswith("hello"):
await message.channel.send("Salut la mif")
client.run ('token')
Can the reason why the code on 15:48 doesn't work be you try to run another line after awaited line? I'm so new to threads
the code for windows at 5:46 isn't working for me, i typed it in as
py -3 -m pip install -U discord.py
what's wrong with it?
wait im dumb i typed it into python not CMD big brain
my version of PyCharm doesn't have the complete top toolbar. Its doesn't have the run button.
Don't mind this comment, the time is just a reference for later. 6:49
I did everything the same but the bot wouldn't be online. It doesn't say that i have any problems other than 2 typo's in the part where i paste the token from the bot (it isn't the ' ' or () just the random letters). For reference i am on Python 3.8 and Windows.
ImportError: cannot import name 'Deque'
when i try to download it, "no version satisfies..."
Same Problem
the part close to 7:22 when she is doing that I keep having trouble and im on a windows can anyone help me
'touch' is not recognized as an internal or external command,
operable program or batch file.?
'touch' is not recognized as an internal or external command,
operable program or batch file.
hello i was wondering how you could get the bot to search for particular words in a message nomatter where they are. i have looked on the doc but i cant find anything like it
WORKS FOR ME !!
touch test-bot.py doesnt work for me idk why it says touch : The term 'touch' is not recognized
as the name of a cmdlet, function, script f
ile, or operable program. Check the spellin
g of the name, or if a path was included, v
erify that the path is correct and try agai
n.
At line:1 char:1
+ touch test-bot.py
+ ~~~~~
+ CategoryInfo : ObjectNotFou
nd: (touch:String) [], CommandNotFound
Exception
+ FullyQualifiedErrorId : CommandNotFo
undException
i typed the code on the terminal and this is what it displayed> "zsh: no matches found: discord.py[voice]" PLEASE HELP
line 3, in
client = discord.Client()
AttributeError: module 'discord' has no attribute 'Client'
robotic nation best youtuber fight me
Hi, So currently i'm on zsh on terminal, and try to get running the command- "python3 -m pip install -U discord.py[voice]", but it respond with-
zsh: no matches found: discord.py[voice]
Anyone know why?
My pycharm is still in 3.9 after downloading 3.8
I got an error with the message.content.startswith("hello") but i worked around it by using if("hello" in message.content)
This is explained well but when i do the touch command it says its not recognized even though I have python and discord py installed
Miss my discord bot not working. I followed exactly same what you did in the video
more, more and more please!
good tutorial, u made me into it!
anyone stuck on finding terminal on windows: Terminal is called "command prompt" type in cmd to find it
For all those user who don't want to or know which ide to use and install discord.py
Use repl.it website. It will provide everything you need and you just need to write the code. As it is open source your code will be available and so your token so watch some youtube tutorials regarding that.
my python version is 3.8. in terminal it is showing "zsh: no matches found: discord.py[voice]" and this msg" You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command." nedd help ASAP
Use pip3 and not pip
Hey uh when I go to python to download 3.6 it just takes me to the notes and doesnt download it I don't know what to do :(
Robotic Nation Why when I try to add the bot to my server, they said that code grant is required. What does it mean? Please help me.
nice video :)
im on the part to upgrade the ceriftaction or something and im on windows 7 were do i go to find the thing
when does she get on with the windows tutorial
Im on Windows but when i type "touch *name of the folder* .py it says 'touch' is not recognized as an internal or external command, operable program or batch file. Help. Edit: Nevermind i found it T_T.
very usefull tutorial
i don't know how you did fix the issue with the import at 9:45
hi i have a question. i did everything jut like in the video but somehow my bot wont say its online. can someone help me pls
if message.content.startswith("hello"):
AttributeError: 'Message' object has no attribute 'conten' help !!
Traceback (most recent call last):
File "D:\lib
unpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\lib
unpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:/Users/sofro/OneDrive/Desktop/HellenicBot\__main__.py", line 6, in
from . import _test as main
ImportError: attempted relative import with no known parent package
Process finished with exit code 1
Its in ur onedrive, remove it from onedrive
I have installed everything but on VSC it still gives me the error "No module named discord" Please help
Cedistic try to run the command inside the main folder your are in. I made this mistake but when I ran the command in the project folder it recognized the library
Hello! I just wanna ask why my bot is not responding tho i followed every single steps you did in this tutorial.
My bot has also perms in the channel btw
Am I being really stupid? Please help ASAP!
if message.content.startswith("test"):
IndentationError: unindent does not match any other indentation level