I remember watching your videos when I got into python and coding and decided to make a discord bot as a first project, lovely to see you still at it keep it up my guy!
If you are getting an error such as: File env\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system At the begging of this tutorial when setting up the bot in Virtual Studio Code, below is a tutorial on how to fix the error. Tutorial on how to fix: th-cam.com/video/X7mg3pJfhZQ/w-d-xo.html The instuctions from that tutorial are listed below. There is an easy work around but you have to have Administrator access on the account that you are using on your PC. -Open PowerShell as Administrator -Type the command "Get-ExecutionPolicy -List" This will bring up a list of execution policies and their current status, at the very bottom of the list, it may say undefined or restricted -Type the command "Set-ExecutionPolicy Unrestricted" A popup will open asking if you would like to continue in powershell -Type "Y" to continue -Type the command "Get-ExecutionPolicy -List" This will show the new set of execution policies and their current status. Here is the YT video I followed for this error, the same YT video linked above: th-cam.com/video/X7mg3pJfhZQ/w-d-xo.html
for anyone having trouble in the terminal and it not working, try to select the cmd terminal instead of powershell by clicking on the drop down arrow next to "powershell" on the right and select command prompt. hope this works for you!
NOTE: If "python" is not a recognised command (even though you downloaded/installed python), you need to go to your "control panel > system > advanced system settings > environment variables " and edit the "Path" variable to also include the folder where you installed python (that contains the python executable).
For anyone who met the """UnicodeDecodeError: 'cp950' codec can't decode byte 0xe5 in position 95: illegal multibyte sequence""" error when running """python bot.py""", you will have to go to the folder where python and hikari was installed. Then edit ux.py Line 160 : change the """open("r")""" to """ open("r",encoding = "UTF-8") """
Why hikari and not discord.py? Hikari is newer and has less documentation and I think would be harder for someone new because it does not have as big of a community. I don't know python well but I see so many tutorials for discord.py but switching while trying to learn seems a bit too confusing
Hey, if I run the script, it gives me that rainbow-ish hikari text and everything looks fine. But the bot doesn't go online. I checked the token, I reinstalled hikari, but it wont start the bot. I went over to pycharm and there it says me that it can't find the hikari libary, even after reinstalling again... Am I again the only one in the world with this problem or does someone know a fix for that problem?? :/
why does yours say \Users\desktop\discordbot>python and my says \Users\kober\PycharmProjects\DiscordBot?? i need help and when i type -m venv env it doesnt work
You have such an amazing voice and your videos are very easy to follow along. Thank you for this. I would absolutely love to see you make tutorials on other topics beside discord bots
Uhhh... Hii! So actually I saw your vids and pretty much liked it however there were huge gaps between some of them. So can you upload consistently for this series if possible?
By the way, discord tokens are valuable, do not show them to anyone else. They must be kept private, and they can be misused in case it was leaked. In case you leaked a token, regenerate it and replace the old token with the new one. Happy coding!
Hi Lucas, whenever I try and run .env\Scripts\activate I keep getting an error which is (The module '.env' could not be loaded) and then it tells me to run ('Import-Module .env') and I still get an error after that. Do you know how to fix this, thanks.
this from @Redfly from this somment section "NOTE: when making the virtual environment, you may get an error saying that your execution policy is wrong. I tried running VS code as an admin, but then it wouldn't let me open the folder. You can solve this by switching your intergrated promt from the default(powershell) to cmd. Thanks for the tutorial btw, it really helps =)"
Thx, can ask you one thing, I have 2 laptops and one pc but in my two laptops I can programming a bots for discord (also profile of windows are diferentes) however in my pc I can’t programming a bot, I mean test a bot (also the pc share the same profile windows from one of my laptops) my question is why I have discord.error HTT etc unauthorizatio?
thanks for making this tutorial and please try to continue finishing this new series of teaching how to make discord bot in python! and also is the 2 series in ur channel are outdated?
Traceback (most recent call last): File "C:\Users\andre\env\disc_bot_test2.py", line 1, in import hikari ModuleNotFoundError: No module named 'hikari' pls help i did every step
For anyone struggling with an error that looks something like this: ModuleNotFoundError: No module named 'hikari', restarting my vs code seemed to have fixed the issue
The background picture shows the place of 'Kailash' - the home of Lord Shiva and how I could tell this because can you spot that artifact beside the tree, that's the 'Trishul' or Trident of Lord Shiva.
after installing hikari and writing the import line i get this error "Import "hikari" could not be resolved Pylance (reportMissingImports)" it worked at first but after a while of coding it stopped working
I’m on a 24’ M1 iMac and I’m trying to get the bot running on it, I got a certificate not verified error, I know you on a windows but would be great if you or anyone els have a solution for me
@@olivierberg5855 If I do this, I get the following error: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certifi' Consider using the `--user` option or check the permissions.
it is showing that hikari is not installed but when i tried it installing it again, it showed requirement already satisfied :\ edit: and im usind python 3.9
I remember watching your videos when I got into python and coding and decided to make a discord bot as a first project, lovely to see you still at it keep it up my guy!
a fool moon night
this comment is my life currently! wish me luck. :-p
@@williamcalhoun7841 same lol
@@williamcalhoun7841 Lmao it's same
Im the 100th liker!
If you are getting an error such as:
File env\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system
At the begging of this tutorial when setting up the bot in Virtual Studio Code, below is a tutorial on how to fix the error.
Tutorial on how to fix: th-cam.com/video/X7mg3pJfhZQ/w-d-xo.html
The instuctions from that tutorial are listed below.
There is an easy work around but you have to have Administrator access on the account that you are using on your PC.
-Open PowerShell as Administrator
-Type the command "Get-ExecutionPolicy -List"
This will bring up a list of execution policies and their current status, at the very bottom of the list, it may say undefined or restricted
-Type the command "Set-ExecutionPolicy Unrestricted"
A popup will open asking if you would like to continue in powershell
-Type "Y" to continue
-Type the command "Get-ExecutionPolicy -List"
This will show the new set of execution policies and their current status.
Here is the YT video I followed for this error, the same YT video linked above: th-cam.com/video/X7mg3pJfhZQ/w-d-xo.html
thanks dude
Thank You so much you saved me
Life saviour.
this works, this man knows his stuff
ur a god
for anyone having trouble in the terminal and it not working, try to select the cmd terminal instead of powershell by clicking on the drop down arrow next to "powershell" on the right and select command prompt. hope this works for you!
It's like a new season! Looking forward to this!
Great!
I just started rewriting my Bot with Hikari (+ lightbulb, but also want to try tanjun).
Will definitely be following this series.
NOTE: If "python" is not a recognised command (even though you downloaded/installed python), you need to go to your "control panel > system > advanced system settings > environment variables " and edit the "Path" variable to also include the folder where you installed python (that contains the python executable).
thank you so much, i was struggling with this one!!
or just redo the installer with add to path enabled
thank you!!
After 7 months a legend is finally back
Slash commands and interactions please. Great VID! Been curious about hikari for sometime now.
Man, you're pretty underrated!
This is really helpful, thanks.
Definitely gonna follow this series, waiting for more!
starting the new year off with a new lucas upload!! 2022 is starting off good
For anyone who met the """UnicodeDecodeError: 'cp950' codec can't decode byte 0xe5 in position 95: illegal multibyte sequence""" error when running """python bot.py""", you will have to go to the folder where python and hikari was installed. Then edit ux.py Line 160 : change the """open("r")""" to """ open("r",encoding = "UTF-8") """
Why hikari and not discord.py? Hikari is newer and has less documentation and I think would be harder for someone new because it does not have as big of a community. I don't know python well but I see so many tutorials for discord.py but switching while trying to learn seems a bit too confusing
lifesaver! hopefully the other videos will come soon!
He's back!
Looking forward to this!😃
Ohh boys I’m bored so back here again!
If you're on Linux, you probably already know this, but to activate the virtual environment you need to run:
source env/bin/activate
I'm on mac you saved my problem thanks mate :)
I’m on Mac too but it said permission denied…
I did not know this, Thanks!
Dude your back. I loved your dpy rewrite series
SICK WALLPAPER
Do you know which wallpaper that is?
Thank god, you are back. I missed this.
Lucas is BACK!
I am a little bit sick but hopefully I don't sound too bad :(
Sounds fine to me no problem dude
Dad
Get well soon and thanks for making this series ☺️
Hey, if I run the script, it gives me that rainbow-ish hikari text and everything looks fine. But the bot doesn't go online. I checked the token, I reinstalled hikari, but it wont start the bot. I went over to pycharm and there it says me that it can't find the hikari libary, even after reinstalling again... Am I again the only one in the world with this problem or does someone know a fix for that problem?? :/
@@alpha18_81 did you created virtualenv and activated it properly?
I WAS TRYING TO DO THIS FOR A WEEK THANKYOU
Hey, thanks for the great serious looking forward to it.
why does yours say \Users\desktop\discordbot>python
and my says \Users\kober\PycharmProjects\DiscordBot??
i need help and when i type -m venv env it doesnt work
You have such an amazing voice and your videos are very easy to follow along. Thank you for this. I would absolutely love to see you make tutorials on other topics beside discord bots
i forgot the application.commands but then it worked
tysm
welcom back!
History repeats itself for the third time and does'nt cease to be cool. Keep it up.
Uhhh...
Hii!
So actually I saw your vids and pretty much liked it however there were huge gaps between some of them. So can you upload consistently for this series if possible?
You came back!
i'm new to visual studio how do you get to that screen at 4:42 ?
Welcome Back!!!
A small tip : Increase the font size or zoom in because it is kinda hard to read even at 1080p.
what theme do you use for vsc?
Hey man, what kind of theme are you using on VSCode
ooo a new series?! amazing, keep it up!
Continue with more videos like this one about Discord Bot! Music, Level, Embeds, Reaction Roles and so on.
YAY! THANKS MAN!
Round 3 here we go
😂
Hey when I host my bot i see the ram goes higher and higher out of nowhere. Any idea how to fix it ?
Welcome back
Why is it when i do this, my bot's not online after running it?
Welcome back! This tutorial was really helpful! Thanks! (:
New serise lets go
By the way, discord tokens are valuable, do not show them to anyone else. They must be kept private, and they can be misused in case it was leaked. In case you leaked a token, regenerate it and replace the old token with the new one. Happy coding!
ok dud
! mhmf
@@jhonsuper7065 you're in twt? :O who are u?
@@Sciencedoneright PrabhS :mhm:
@@jhonsuper7065 mhm nice
This is pretty cool
Awesome
it gives me an error when i type ".\env\Scripts\activate'
Change the default terminal from powershell to cmd
me too
Hi Lucas, whenever I try and run .env\Scripts\activate I keep getting an error which is (The module '.env' could not be loaded) and then it tells me to run ('Import-Module .env') and I still get an error after that. Do you know how to fix this, thanks.
this from @Redfly from this somment section
"NOTE: when making the virtual environment, you may get an error saying that your execution policy is wrong. I tried running VS code as an admin, but then it wouldn't let me open the folder. You can solve this by switching your intergrated promt from the default(powershell) to cmd. Thanks for the tutorial btw, it really helps =)"
Yo I found a fix for it just watch this vid mate. th-cam.com/video/X7mg3pJfhZQ/w-d-xo.html
Thx, can ask you one thing, I have 2 laptops and one pc but in my two laptops I can programming a bots for discord (also profile of windows are diferentes) however in my pc I can’t programming a bot, I mean test a bot (also the pc share the same profile windows from one of my laptops) my question is why I have discord.error HTT etc unauthorizatio?
Can you make a musicbot part with queues and search + link stuff
What is the difference to the series before?
The hikari? Why use this and not the normal api for python?
discord.py which was used in the last series, has been abandoned and will no longer be updated. I have moved on to using hikari thus the new series :)
@@Lucas-tz3jp What about pycord?
@@Lucas-tz3jp this comment didnt age well
@@goldmannation why hasnt it age well?
Why do i get a message saying “No module name ‘hikari’?
Install it ig
thaks, man!
thanks for making this tutorial and please try to continue finishing this new series of teaching how to make discord bot in python!
and also is the 2 series in ur channel are outdated?
can i get the background?
Upload more tutorial on this topic plsssssssssssss
What about some moderation commands?
Traceback (most recent call last):
File "C:\Users\andre\env\disc_bot_test2.py", line 1, in
import hikari
ModuleNotFoundError: No module named 'hikari'
pls help i did every step
Do "pip install hikari-tanjun" That solved it for me
Try restarting your computer, that worked for me
@@Rihards_Gold You are a god thanks my friend.
For anyone struggling with an error that looks something like this: ModuleNotFoundError: No module named 'hikari', restarting my vs code seemed to have fixed the issue
Hi, I am having trouble on discord. There are no servers to add on the drop down list. What should I do?
thanks
how do i make the virtual enviroment on a mac? i cant use cmd because my default is zsh
Coool
What is ur upload schedule?
Hey man, you helped me alot with coding, thank you so much! i would love to see more content ✨
The background picture shows the place of 'Kailash' - the home of Lord Shiva and how I could tell this because can you spot that artifact beside the tree, that's the 'Trishul' or Trident of Lord Shiva.
i mean... for the first step it say something about the powershell that i can open the "env" ?
is it normal ?
Why not use nextcord or pycord?
Nice 👍🏻🙂
I can't seem to get into the env file im on Linux Ubuntu.
I'm having the same issue
th-cam.com/video/bkfdMOaqZuk/w-d-xo.html found this youtube video that explains how to do it on linux
He bac
Thank youuuuuuuu
works on replit aswell?
Nice voice drop.
Whenver I run the code it tells me that "module 'hikari' has no attribute 'GateWayBot' "
is there a way hikari can delete messages or kick/ban, basic functionalities
I am getting a "No Module Named venv" when running python -m venv env
How do I fix this error?
(I am also using VS Code)
can i use pycharm for this?
im sorry i rlly couldnt tell what he typed after python in 5:18
the subtitles said "dash m" so i tried that but it didnt work ;-; pls help
python -m venv venv if your are on Mac or linux make it python3
after installing hikari and writing the import line i get this error "Import "hikari" could not be resolved Pylance (reportMissingImports)" it worked at first but after a while of coding it stopped working
its: "import hikari" not "Import hikari"
@@rinka8430 still doesn't work, it says " ModuleNotFoundError: No module named 'hikari' "
@@josuedelatorre35 so that is because u didnt install hikari, run this code in ur terminal: pip install hikari
@@rinka8430 I got the same error, i reinstalled twice but I still get this error
@@alpha18_81 so try this commands:
pip3 install hikari
pip install hikari
python -m pip install hikari
python3 -m pip install hikari
py -m pip install hikari
py3 -m pip install hikari
it says no module hikari and i don't know what to do. can you help me?
For me, IG its saying that python is not there. Could you assist me on this?
refresh token, lmao. it was cool.
Will this series cover how to make a bot to post messages to specific channels (not to respond to specific command in discord chat)?
What's the difference between this series and the previous one?
any resource for me to learn how to code a discord bot using hikari
what's that wallpaper it looks pretty cool
thank you, this helps me a lot, +1 sub
thanks how to join your discord server. the invite link expired
why does event.content return none
man when i am activating environment it says cannot be loaded because running scripts is disabled on
this system. do you know something abt it?
run Set-ExecutionPolicy -ExecutionPolicy Unrestricted, it works for me
Change your default terminal to cmd in vs code settings
Could you make a tutorial on how to set this up on a Raspberry Pi 4?
plz can u do tutorials using pycord plzzzzzzz
what is the short cut to terminate the terminal?
ctrl + c; probably too late :)
do you technically need hikari to have a good bot?
I’m on a 24’ M1 iMac and I’m trying to get the bot running on it, I got a certificate not verified error, I know you on a windows but would be great if you or anyone els have a solution for me
@@olivierberg5855 If I do this, I get the following error:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certifi'
Consider using the `--user` option or check the permissions.
@@olivierberg5855 What can I do, to fix that error?
how can u keep your bot up 24/7 ?
i did everything exaclty the same but I never got the rainbow hitari I have the error hikari has no attribute gatewaybot
nvm just save the file at the end then run it
right before python.py
it is showing that hikari is not installed but when i tried it installing it again, it showed requirement already satisfied :\
edit: and im usind python 3.9