Creating Discord Bot in NodeJS
ฝัง
- เผยแพร่เมื่อ 24 พ.ย. 2024
- ► Master NodeJS Playlist: • Master NodeJS
In this tutorial video, you will learn how to create a simple Discord Bot in NodeJS
► Complete Full Stack Web Developer RoadMap 2023: • Complete Full Stack We...
► My Website: www.piyushgarg...
My Gears
► My Girlfriend: amzn.to/3WD6FRp
► Apple MacBook Laptop: amzn.to/3WBJgQn
► Anker USB Hub: amzn.to/3GhZSr0
► Blue Yeti Microphone: amzn.to/3YKZ9FT
► External 27” Monitor: amzn.to/3Vp3xaO
► Logitech MK295 Wireless Keyboard and Mouse: amzn.to/3DuL1bB
► Seagate Expansion 1TB External HDD: amzn.to/3QMm5Q8
► Tripod: amzn.to/3S4OwK4
► Ring Light: amzn.to/3YLf8DR
Disclaimer: All the links above are affiliate links.
Social Links
► Twitter - / piyushgarg_dev
► LinkedIn - / piyushgarg195
Video Titles
Discord Bot in NodeJS
NodeJS Discord Bot
Discord.js Node
Tags
#nodejs #authentication #javascript #expressjs #mongodb #mernstack #developer #api #https #server #javascriptinhindi #webdevelopment #webapp #realtimeapp #serverside #nonblockingio #tech
i finally made my first discord bot after a lot of efforts...... all credit goes to you man
Congrats!! 🎉
One additional thing as a backend developer not recommended to directly use the configuration like client ID , token , and other configuration in directly codebase save it in an .env file , add the .env file on gitignore and create all env variables there and use process.env.variable_name to access the variable value wherever required . This prevents exposure of secret keys and configuration keys being pushed directly on main codebase
Hi, can you help ?? I am facing some issues in github.
@@BhaktiTone what issue you are facing
@@karanbhanushali6756 I have a project, where I am using ejs as a view engine.
I have encrypted my secret data's using
. env and then I have ignored that node modules and. env files using gitignore.
When I am pushing my that whole project on github, github is showing that your 1st page must be index. html.
But i am using ejs pages inside views folder, then how can i do that??
@@karanbhanushali6756 bro after learning and practicing and making some small projects from this project which i did so now from where i should learn?? like free resources like video resource/playlist/course or notes to improve my backend skills and knowledge more?
@@Fe-ironman This series covers about creation of logic to respond to different request to discord bot. After this you should learn to create basic MVC architecture of backend of any application. How schema are designed, how API are created for http request handling from Frontend. Then build projects in it
I feel very lucky to find your channel on TH-cam 🎉🎉
Don't even understand the language and was easier to follow than some other guy on here, straight to the point and simple enough to wrap my head around
very underrated channel.Gem level of content.
Just what I needed, now I just need to setup my own codebase for my discord bot. Thanks for the video, this is pretty helpful :)
man you are Awesome! i really learned whole mernStack in 15 days you are god level sir
MERN STACK IN 15 Days 🫡
thank you so much i followed like 5 tutorials and couldn;t do it but your tutorial was so good i did it in one try . Thank you soooo much
Hi , Piyush you have grate know, please also create a tutorial on Facebook, Twitter and other social media apis integration. Thanks
Good work man.keep it up.
Create more projects in Nodejs/Expressjs.
Thank you
I used my cookie knowledge to reset my account details in the discord developer portal. As I couldn't find any logout option and somehow my wrong account was logged in, so I remembered about the session and cookie relationship and cleared the site data, this time consciously, which solved the problem.
BRO THANK YOU!!!
i was frustrated because i coded the bot spending days and nights, in the end it did not work, i tried multiple solutions but the task was 1 thing, gatewayintentbits, it was missing 1 intent which was message content intent, i check it after watching this video thanks!
Maza aagya bhai!!!
really helpful video! today , i did the setup of discord bot!
we can use discord custom commands to fetch live data from database like
Total units produced, what's hourly production etc
Thank you so so muchhhhh ı tried all videos that creates bot but in my computer none of them worked thanks you ı manage to create a bot thank you so much!
Make videos on payment integration and sms integration
Can you make a proper video on 'How to create a chrome extension'
Please
bot token should be saved in an .env file so that only you can see the token and change it
Thank you for this a little hattke project
Awesome sir!!!!
npm start is not working properly first it runs for 2 seconds then in terminal i get an option to write in terminal again. I cant see any discord messages
i was having a problem pushing code form this video on git hub
instead of pressing commit & push i press commit(amend)
and i thought the issue was because of that and i was scratching my head for 30 min but then when i read the log file properly
it turns out it is some feature of github that was stopping me from pushing the code because it contained authentication token
so i had to hide that token in order to complete the push
just in case u need it
i cant do the npm init thing it just gives me an error
Sir I have learned HTML CSS JS and some react JS concepts I know syntax of all these but when I want to build any project my mind become totally blanked and couldn't know how to use all these concepts to build some thing . Is every beginner faced this problem or just I am facing?
practice
Practice and practice
subscribed (*salute emoji)
thanks brother👘
Ty, you're the best ;)
Thank you so much and You're welcome 😊
Where we can find the source code of the application
There is an API error of discord please tells about that nice video❤❤❤
thank you sir
I was trying it but the error says Readable Stream not defined . Can someone help me?
Hi, im not able to use npm init my vscode can someone help?
When I am doing "npm start", then it is not doing anything. I have tried writing "node index.js", upgraded to the latest versions of node. But it is still not showing anything. Is it because the discord servers are taking too much time to respond or anything else. Please help!!
Mine is showing error in import command
did you get solution?
there is and error code:bitfieldinvalid please provide me a solution
I also have this problem😂
Why does my npm is not working
its a great content but but it stuck student in tutorial hell they never gone learn right way of coding
I'm getting ReferenceError: ReadableStream is not defined error
Upgarde the node version
how he stop the bot
I have refreshing error
5:24
Is not working
Hi
you explain too fast
bro tf r u talking bout, i cant understand a thing
learn hindi bro and you will be shocked that everything he said made so much sense :)))
@@shi-nee7966agreed
/Users/dp/Desktop/ALL MERN PROJECT/PiyushGarg/DiscordBot/node_modules/undici/lib/web/fetch/response.js:530
ReadableStream
^
ReferenceError: ReadableStream is not defined coming this error trying too much
Upgrade the node version
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 127.0.0.1:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 443
}
Node.js v20.17.0
I am getting this error, can anyone help Please?
Couldn't understand a thing...
6:51