Тёмный

How to make a Discord Bot for Beginners (Discord.js v14) 

Under Ctrl
Подписаться 9 тыс.
Просмотров 319 тыс.
50% 1

How to make a Discord Bot for Beginners (Discord.js v14)
🌐 Important links:
Discord Developer Portal: / discord
Discord.js official website: discord.js.org
Discord Intents List: discord.com/developers/docs/t...
Patreon: / underctrl
Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
🎵 Music Credits:
Track Name: "Blue Boi"
Music By: LAKEY INSPIRED @ / lakeyinspired
Original upload HERE - • LAKEY INSPIRED - Blue Boi
Official "LAKEY INSPIRED" RU-vid Channel HERE - / @lakeyinspired
License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
Full License HERE - creativecommons.org/licenses/...
Music promoted by NCM / @chillcopyrightfreemusic

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

 

11 дек 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 780   
@UnderCtrl
@UnderCtrl Год назад
Want me to make you a custom bot? Email me at: avraj@underctrl.io or DM me on Discord: avrajs (PAID WORK) Source code: github.com/notunderctrl/discordjs-v14-series Discord server: discord.gg/T4faJeH84A
@Cyoclonic
@Cyoclonic Месяц назад
the insane amount of times i have hear scammers say that and in reality they nuke your server
@UnderCtrl
@UnderCtrl Месяц назад
@@Cyoclonic Thanks for bringing up this concern - I'll help clear it up. My reputation matters to me. I've been working with clients for web development for over a year at this point. To make things clear: 1. My clients are paying for the code I write. They own it at the end of the day and have full authority to check and see what's going on with the code. 2. If I'm doing bot development, I do the bot development in a separate guild so as to not disturb the flow of my client's community. 3. In most situations (considering the project scale), we work with a legal contract to protect the interest of both parties.
@Cyoclonic
@Cyoclonic Месяц назад
​@@UnderCtrl Jesus Christ I didn't expect an entire essay dude I was just joking 😭 but can you make a vid on how to fix nodeom thingy it keeps saying that security is not letting me.do it
@UnderCtrl
@UnderCtrl Месяц назад
@@Cyoclonic got an faq in our Discord about the powershell security policy: underctrl.io/discord
@Misfit5395
@Misfit5395 Год назад
Thank you for this, I’m a complete newbie to discord bot.. and programming as a whole. I had been following guides for days with no luck.. didn’t know I was using old code. Followed this step by step and the bot was online within the hour.
@iSpaRky_01
@iSpaRky_01 Год назад
10/10 tutorial guys literally spent the whole afternoon checking out tutorials and this one is the only one that worked because of the V14 update. You deserve way more views 🙌
@prestontruong524
@prestontruong524 10 месяцев назад
Fr
@xcalibur3198
@xcalibur3198 7 месяцев назад
WOW just WOW. This is unbelievable that I literally set up my first discord bot successfully like literally just following along. I cant thank you enough. The way you explained every detail in depth and in such beginner friendly way was just awesome. Thank you so much!!
@anonieme_beer9200
@anonieme_beer9200 Год назад
This playlist of video's are some of the best programming video's i've ever seen. Currently working on a discord bot, and everything you do is so clear and straight to the point, I saves so much time compared to other programming video's. Thank you so much for the effort of creating these video's!!!
@determineddecision5789
@determineddecision5789 7 месяцев назад
bu yorumu yaptığın için teşekkürler. sadece beğene basarak üste çıkarabiliyorum :)
@garrydawnerdot
@garrydawnerdot Год назад
I remember spending hours and hours to debug just because of intents haha, finally someone who could relate to it! I really appreciate your effort, please keep up with the tutorials!
@bladedaxe77
@bladedaxe77 Год назад
Thank you, very straightforward compared to many other tutorials out there. Keep it up! 👍
@Nick12_45
@Nick12_45 5 месяцев назад
out of all the tutorials i've watched, this one is definetely the best! Tysm!!
@being.saksham
@being.saksham 11 месяцев назад
The series is so awesome, everything is explained very well. Thank you for creating such videos!! 🤩
@1x1y8o
@1x1y8o Год назад
This tutorial is *amazing!* The documentation is enough of 8 stars! Better than the entire Discord's documentation. The creator gives answers quickly and the Discord server is helpful! *10/10* overall!
@1x1y8o
@1x1y8o Год назад
@Storm Debater Lmao
@Das_08
@Das_08 Год назад
Same happened with me too I didn’t put the proper valid intents in my bot I spent a whole day debugging the code and asked many people in the discord about it but it didn’t help me lot , so started finding proper tutorial in RU-vid I saw ur Video and rest is history ! Now I can continue my bot making program ( I was near to give on coding but ur video saved me THANKS A LOT)
@silentM000N
@silentM000N 6 месяцев назад
Solid video, can't wait to follow along with the rest of the series. Apprecaite you taking the time to explain even the little things.
@bxnny6657
@bxnny6657 Год назад
Thank you so so much, ive not been making bots since discord js v12 which is 2 years ago, and now i've started again, i tried following the discord js v14 guide but theres many mistakes and non necessary type things in the guide, so following you was much better. Thank you for getting me back into this!(:
@MoistMosquito9000
@MoistMosquito9000 Год назад
If anyone is having the problem of "Error: Used disallowed intents", the solution I used is to scroll down untill you see "Privileged Gateway Intents", then just select all of them.
@ezricez
@ezricez 7 месяцев назад
Ty
@flashgaming6447
@flashgaming6447 6 месяцев назад
elaborate?
@bkkpro1980
@bkkpro1980 5 месяцев назад
thanks
@DINOxANAS
@DINOxANAS 4 месяца назад
tysm
@nathanbotes5868
@nathanbotes5868 2 месяца назад
The "privileged gateway intent" boxes that you tick is on the discord website, under the bot folder, tick PRESENCE INTENT, SERVER MEMBERS INTENT, and, MESSAGE CONTENT INTENT. This took me a lot longer to figure out than I am willing to admit.
@RHOCHR
@RHOCHR Год назад
This is the kind of tutorial we need! Great explanation!👍 I liked and subscribed
@user-nh7ik4zz8j
@user-nh7ik4zz8j 4 месяца назад
I got stuck with other posters' videos, but thanks to your video I was able to successfully create the bot. thanks so much. Many of the other posters omitted the part of generating the package.json, but you explained it, which was helpful. Also, you explained the meaning of each movement. It was amazing.
@min_808
@min_808 Год назад
I love how you included the .env portion in this tutorial :)
@V9Void
@V9Void 7 месяцев назад
I DID IT TYSM! I STRUGGLED SO MUCH FOR THE PAST 2 YEARS AND I *F I N A L L Y* DID IT! You got yourself a sub bro, keep up the good work!
@medul8039
@medul8039 Год назад
yoo it took me forever to get anything working today and this is the only video that actually helped thx alot also the only video that actually helped me understand things like guilds, intents ect.
@ApAileron9
@ApAileron9 4 месяца назад
This is the best tutorial series out there. Very easy to understand and replicate. Make sure you have the syntax right in you are not experienced in JS. Would recommend writing down terminal commands. 10/10
@boostedrobloxdevelopment3374
Thank you for such amazing tutorials, they are really useful and simple to understand!
@markgorbe
@markgorbe Год назад
keep up the good work. literally the best and most understandable tutorial. thank you
@avsm4832
@avsm4832 Год назад
Epic Tutorials, just trying to explain everything, and I even understood, you just earned a subscriber
@gillisagorastos
@gillisagorastos Год назад
Great Video! Had some problems in the start but it worked out super good! cant wait to learn more from you!
@riwayateishq
@riwayateishq 3 месяца назад
Your way of teaching is wonderful! I am a Next JS dev, but very rusty at the time! I couldn't understand the "fancy words" in the documentation, but with your guidance I can progress way faster! Hopefully things haven't got depreciated since it's been a while haha. Much love ❤
@elouanm4732
@elouanm4732 2 месяца назад
This video is so well done! Everything is explained and easy to understand. Seriously you've done a really good tutorial.
@evanilsonp.8183
@evanilsonp.8183 Год назад
Hey man. I'd like to tell you that it was nice to watch this tutorial. Good video. Keep up the good work.
@MioNozomi
@MioNozomi 11 месяцев назад
Thank you so much! I'm using this as my first ever coding project and im so excited. Wanted to share a dumb mistake i spent way too long fixing. I'm dyslexic, and apperently i typed client twice in the first line and then nodemon wouldnt work. and it took me til just now to figure out the problem haha
@mkoi228
@mkoi228 Год назад
10/10, First guide that explains why the other 7 guides that I've tried didn't work.
@al-ft1ng
@al-ft1ng Год назад
appreciate the tutorial man, really really useful to get the basics done.
@popmango
@popmango Год назад
Very straight forward and simple tutorial bro. Thank you so much!
@DOTPIE
@DOTPIE 4 месяца назад
Thanks a lot for these tutorials, they were immensely helpful. I wanted to do a simple discord bot for fun and you are super clear and to the point, while also explaining things in appropriate detail! Cheers :)
@enkhboldnymdorj2790
@enkhboldnymdorj2790 Год назад
Your explanation goes right into my head. Nice one
@al-mamluk
@al-mamluk 3 месяца назад
Your tutorials have been very helpful. Thank you for taking the time and effort to make these videos.
@simeonerasmus
@simeonerasmus Год назад
Very well put tutorial. Thank you very much my man you really teached me alot today.
@dalfydalfy9318
@dalfydalfy9318 Год назад
Hey, I'm just at the 5th video but for now it's really interesting, complete and easy to understand even though I'm not english nativ ! You care to explain a lot more than other tutorials and it seems you're going through all main topics in your playlist. Rythme is nice, finding a nice, complete and up to date guide on discord bots is hard these days :D Thanks a lot for your work ! You'll get my thumbs up, no doubts !
@akshitrajputhere
@akshitrajputhere Год назад
You speak great english
@RHOCHR
@RHOCHR Год назад
I am also not english nativ and also find it super cool!
@KarolinaRGameDesign
@KarolinaRGameDesign 4 месяца назад
100/10 Ive watched other tutorials and couldnt figure it out how to set it up properly, Im new to coding but your video is so easy to understand that I managed to do it :D woohoo
@Tendity
@Tendity 7 месяцев назад
OMG I CANT THANK YOU ENOGH! your tutorials are the best of the best (new sub)
@realnarwhal
@realnarwhal Год назад
I'm planning on making a bot for the friend that can notify discord members when he uploads, hopefully I'm starting at the right place to do it, thanks for the tutorial!
@bushibushirino6566
@bushibushirino6566 Год назад
Thank you very much, i have been trying since 3 years, you did the proper and best tutorial!
@daveyyyyyyy
@daveyyyyyyy Год назад
3 years 💀💀💀
@MRHD-so5es
@MRHD-so5es Год назад
your video is very useful i hope to complete the course and don't stop uploading videos thx for help
@sean_fisher
@sean_fisher Год назад
excellent video. very detailed. coupled with chatGPT I was able to get it right and I have my own discord bot. will be watching much more subbed and notified : )
@PluTiper
@PluTiper Год назад
This video was extremely helpful, thank you! 👍
@_Jiwan_
@_Jiwan_ Месяц назад
Thank you! Your tutorial is so easy to understand & follow
@user-jw7jw6iu8v
@user-jw7jw6iu8v 6 месяцев назад
Wow! Your content is amazing! You have some proper teaching skills! You are the 🐐my friend! Respect!
@omni444
@omni444 Год назад
one of the best tutorials i've watched. thank you!
@UnderCtrl
@UnderCtrl Год назад
Thank you so much :)
@m4rfs
@m4rfs 9 месяцев назад
I love u so much, you explain things so well! thank you for this tutorial ♥
@isseyyy69
@isseyyy69 Год назад
this is first video which helped me. thank you!
@anocre
@anocre 11 месяцев назад
Wow Awesome explanation. Subscribed you in 1st video.
@ausiman
@ausiman 8 месяцев назад
Great tutorial! For those of you that received a MODULE_NOT_FOUND error after doing *"npm install dotenv"*, do the *"npm install discord.js"* command again and it should work. If this doesn't work, read through the error that you are getting and look for the module that it can't find. For example, my error was: [nodemon] starting `node src/index.js` node:internal/modules/cjs/loader:1051 throw err; Error: Cannot find module 'discord.js' Require stack: That's why you would have to do the *"npm install discord.js"* command because for some reason it got removed when I did the *"npm install dotenv"* command.
@UnderCtrl
@UnderCtrl 8 месяцев назад
Reason for this in most cases, is people usually edit their package.json while installing packages. This tends to lead to an outdated package.json. The fix you mentioned is correct. Just reinstalling should fix it!
@mr0mooz368
@mr0mooz368 8 месяцев назад
Man i've been looking for a way to solve it for hours. God bless you
@mr0mooz368
@mr0mooz368 8 месяцев назад
❤❤❤
@ausiman
@ausiman 8 месяцев назад
@mr0mooz368 Glad to hear this worked for you and good luck in your learning!
@haggarduser
@haggarduser 7 месяцев назад
Thanks so much for this!
@alex_turing
@alex_turing 10 месяцев назад
The best video on the topic I was able to find
@thebestol0ch483
@thebestol0ch483 Год назад
10/10, the best guide i've ever seen!
@21jpmm
@21jpmm 9 месяцев назад
excellent guide, good way to explain the basics
@WildBearHW
@WildBearHW Год назад
I restarted the process 3 times and followed along side you in x0.75 speed. I keep getting this when i use command nodemon in the terminal nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + nodemon + ~~~~~~~ + CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@DucksAreEpic
@DucksAreEpic Год назад
If you get an error saying "cannot be loaded because running scripts is disabled on this system." while trying to "nodemon", I found a solution for that. This is for windows btw. I searched this online, and it seems you have to allow "untrusted" scripts to run on your computer. To do that, you have to open PowerShell as an administrator. If you type in "Get-ExecutionPolicy", you probably should get "Restricted". We want to change that. So, you should type in "Set-ExecutionPolicy RemoteSigned" and then press "y". To confirm the change, type again "Get-ExecutionPolicy". It should say "RemoteSigned" now. That should solve the problem :)
@Not_Mood
@Not_Mood Год назад
Not Working for me😥😥.Any suggestions please
@elmix5318
@elmix5318 Год назад
Thanksss!!!!!
@sniper_agent4656
@sniper_agent4656 Год назад
ohhhhhhhhhhhhhhhh! thanks
@jijiandme
@jijiandme Год назад
@@Not_Mood try typing in "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" and then press "Y"
@freshdews
@freshdews Год назад
thanks!
@instamac6496
@instamac6496 9 месяцев назад
love this tutorial! Thank you so much
@linh8708
@linh8708 2 месяца назад
thank you! this is so useful and clear!
@tariqplays5826
@tariqplays5826 23 дня назад
BANGER tutorial. Loved it.
@stevenelsoncpp
@stevenelsoncpp 5 месяцев назад
Great tutorial man! Very obviously aimed at coders but you do a great job at explaining concepts that may be unfamiliar. Just wanted to add one note, for those that may have an issue with the 'nodemon' command, I had to login to CMD as admin and type "PowerShell Set-ExecutionPolicy -Unrestricted" for the command to work due to security settings.
@delmix-65
@delmix-65 5 месяцев назад
what do you mean ? I have the same error but i don't understand why i have this error
@YTNUKEALL
@YTNUKEALL 4 месяца назад
I need help
@YTNUKEALL
@YTNUKEALL 4 месяца назад
how do I login to cmd as admin I might just be dumb
@YTNUKEALL
@YTNUKEALL 4 месяца назад
so this to open the cmd as admin Press the Windows Start button at the bottom left. Type in "Command Prompt". Right click on Command Prompt and click "Run as administrator". Click Yes if the Windows 10 User Account Control prompt is displayed. The Command Prompt should appear. then you type the cmd (PowerShell Set-ExecutionPolicy -Unrestricted) I hope this help
@YTNUKEALL
@YTNUKEALL 4 месяца назад
maybe not idk man
@regis5507
@regis5507 5 месяцев назад
thank you for the video, amazing way to teach :)
@mats33667
@mats33667 9 месяцев назад
How do I make it so it checks for user cooldown like if someone gets a promotion (roblox) it says that “Cool-down ends on the (DATE) using the / command
@albin8961
@albin8961 28 дней назад
The require is always throwning an error for me and it says that the modul cant be found
@ardeleanu7902
@ardeleanu7902 Год назад
Thanks for the tutorial love it!!!!!! For a kid who wants to start coding it s just amazing thanks
@RHOCHR
@RHOCHR Год назад
Same
@5bigblackmen
@5bigblackmen 2 месяца назад
at 13.46 when i run the command the terminal says [nodemon] app crashed - waiting for file changes before starting...
@EsteriaASMR
@EsteriaASMR Год назад
4:20 I put in the code but it's popping up with bash: npm: command not found. I have no idea what I'm doing wrong :/
@TheLunarMoon334
@TheLunarMoon334 4 месяца назад
Same
@Zyex2244
@Zyex2244 4 месяца назад
Same. I think its cause we are on a different OS or something.
@deleted1803
@deleted1803 Месяц назад
might have to change the name of the folder
@echomouser
@echomouser Месяц назад
Did you install node.js?
@youngun550
@youngun550 6 месяцев назад
Great video. Thank you!
@hazazi3177
@hazazi3177 8 месяцев назад
your'e so amazing person brother thanks for your tutorial I've subscribed and will follow hope you will upload more content like this tutorial I wants to learn and you explain every detail as I expect. thanks.
@Janelle-zs9jh
@Janelle-zs9jh 2 месяца назад
Thanks! Super helpful
@drakongames5417
@drakongames5417 Год назад
nice channel name. sounds cool and intuitive
@hazush_
@hazush_ 11 месяцев назад
I LOVE YOU, BRO YOU HELPED ME SO MUCH BRO I REALLY DON'T KNOW WHAT TO SAY BRO
@scypus8691
@scypus8691 5 месяцев назад
If you get the error "[nodemon] app crashed - waiting for file changes before starting..." around 13:30 you may have to set the file path manually with the command since it sometimes does not account for the src folder. For example, I ran "nodemon C:\discord-bot\src\index.js" and it worked.
@sdewwu
@sdewwu 5 месяцев назад
i had the same problem, but thats because i had only been saving the index.js folder and not the package folder. double check that main is src/index.js not just index.js
@mikerotchburns4307
@mikerotchburns4307 5 месяцев назад
@@sdewwuhow do I do that
@Bloqqy88
@Bloqqy88 4 месяца назад
it still does not work for me
@kapimo
@kapimo 4 месяца назад
nodemon C:\discord-bot\src\index.js this will work
@kajtus74
@kajtus74 Год назад
best tutorials on youtube fr
@spiritwolf1390
@spiritwolf1390 10 месяцев назад
ran into a minor issue. when i wrote the code just as it is and when i said "hello" in chat the bot replies 2 - 3 times. anyone can point me to how to fix this so it only messages once?
@muriilouwu
@muriilouwu Год назад
awesome video ! a question, what did u make to show that ure using vs code in the discord
@UnderCtrl
@UnderCtrl Год назад
Discord Presence extension in VS Code
@krispyangels
@krispyangels 2 месяца назад
It always gives me an error that the term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. I tried checking as I can but I'm still too new to this stuff.
@kontorudaisuki6938
@kontorudaisuki6938 3 месяца назад
It said Node.js v18.14.2 [nodemon] app crashed - waiting for file changes before starting... Ive already tried to kill all nodes but it still doesn't change the error. How do I fix this?
@twig6051
@twig6051 Год назад
whenever i use "nodemon an error says something like "AppData\Roaming pm odemon.ps1 cannot be loaded because running scripts is disabled on this system." how can i fix this?
@melisahy
@melisahy 8 месяцев назад
it keeps saying [nodemon] app crashed - waiting for file changes before starting and before that it said module not found, any idea on what i should do?
@Powlay2020
@Powlay2020 Год назад
idk what to do i keep getting this error [nodemon] app crashed - waiting for file changes before starting...
@EpicFails_01
@EpicFails_01 Месяц назад
I have a problem where i put in npm init -y and it brings up an error message every time
@wooshy1x
@wooshy1x Год назад
hi! its saying TypeError: Cannot read properties of undefined (reading 'GUILD_MESSAGES') at Object. for some reason, can anyone help?
@paintendo1251
@paintendo1251 7 месяцев назад
nice tutorial, thank you so much
@icecubesaad8732
@icecubesaad8732 Год назад
Nah your explanation is fireeeeee 🔥🔥🔥
@Bert._
@Bert._ Год назад
13:14 do I need nodemon or can I install node fetch suggested by someone?
@supercool1826
@supercool1826 2 месяца назад
Nodemon doesn't work for me it gives me errors after installing it and using it.
@rhino6070
@rhino6070 5 месяцев назад
After I made the .env and moved my code there, even after following and doing everything exact, it’s now saying invalid token and idk how to fix it.
@GCmoose
@GCmoose Год назад
Hey, I searched through the other comments and dont see an answer to this - any idea? Im getting this error aroudn the 13:40 mark "[nodemon] app crashed - waiting for file changes before starting..." I just posted in the discord so hopefully you or someone there can help
@XXX10Tacles
@XXX10Tacles Год назад
I cant invite my bot when i go there its telling me "Please enter a redirect uri" when i manually enter that in "OAuth2" and try to invite then it's telling me "{"client_id": ["This field is required"]}".
@sheeshou4460
@sheeshou4460 10 месяцев назад
Thank youuu!! This works!
@artoriapd
@artoriapd Год назад
This is so cool!
@bushibushirino6566
@bushibushirino6566 Год назад
You deserve a award
@user-ri7rf7qp9j
@user-ri7rf7qp9j Год назад
when i run the nodemon it says clean exit - waiting for changes before restart what do i do
@midnightdemise1795
@midnightdemise1795 10 месяцев назад
best amazing tutorial ever.
@larkb4944
@larkb4944 Год назад
You’re so Calm
@Ghost1000nz
@Ghost1000nz 8 месяцев назад
nice and clear makes it easy just doesnt want to work for me for some reason when typeing in the ( npm init -y )
@enzima
@enzima Год назад
Great tutorial!
@CyberNetAgency
@CyberNetAgency 11 месяцев назад
The best tutorial so far 🥰🥰🥰
@MythicNinja
@MythicNinja 20 дней назад
So I downloaded Node.js but when I run the command npm init -y or npm init. VSC just gives me an error.
@TheWildcat_YT
@TheWildcat_YT Год назад
Thanks very useful.
@Funkiverse
@Funkiverse Год назад
Thank you so very much !
Далее
Register and Run Slash Commands (Discord.js v14)
10:32
Просмотров 101 тыс.
I Hacked a Discord Bot, the Owner said this...
9:09
Просмотров 1,1 млн
Ruining Discord Servers with a Bot Exploit!
9:32
Просмотров 434 тыс.
How to Build a Discord Bot
4:41
Просмотров 214 тыс.
I tried Discord Bot Makers...
14:19
Просмотров 106 тыс.