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

ความคิดเห็น • 72

  • @Abhinav-ex6ch
    @Abhinav-ex6ch ปีที่แล้ว +42

    i finally made my first discord bot after a lot of efforts...... all credit goes to you man

  • @karanbhanushali6756
    @karanbhanushali6756 8 หลายเดือนก่อน +39

    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

    • @BhaktiTone
      @BhaktiTone 5 หลายเดือนก่อน +1

      Hi, can you help ?? I am facing some issues in github.

    • @karanbhanushali6756
      @karanbhanushali6756 5 หลายเดือนก่อน +1

      @@BhaktiTone what issue you are facing

    • @BhaktiTone
      @BhaktiTone 5 หลายเดือนก่อน +1

      @@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??

    • @Fe-ironman
      @Fe-ironman 5 หลายเดือนก่อน

      @@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?

    • @karanbhanushali6756
      @karanbhanushali6756 5 หลายเดือนก่อน

      ​@@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

  • @weforyouweb1165
    @weforyouweb1165 ปีที่แล้ว +5

    I feel very lucky to find your channel on TH-cam 🎉🎉

  • @devonwelch249
    @devonwelch249 ปีที่แล้ว +3

    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

  • @shubhzdev4905
    @shubhzdev4905 ปีที่แล้ว +1

    very underrated channel.Gem level of content.

  • @hasimystic
    @hasimystic ปีที่แล้ว +6

    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 :)

  • @ashish.2002
    @ashish.2002 6 หลายเดือนก่อน +4

    man you are Awesome! i really learned whole mernStack in 15 days you are god level sir

  • @ayush_gupta2011
    @ayush_gupta2011 ปีที่แล้ว

    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

  • @DevJourney991
    @DevJourney991 27 วันที่ผ่านมา +1

    Hi , Piyush you have grate know, please also create a tutorial on Facebook, Twitter and other social media apis integration. Thanks

  • @Intellectualmind4
    @Intellectualmind4 ปีที่แล้ว +2

    Good work man.keep it up.

  • @iUmerFarooq
    @iUmerFarooq ปีที่แล้ว +4

    Create more projects in Nodejs/Expressjs.
    Thank you

  • @as_if
    @as_if 7 หลายเดือนก่อน +1

    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.

  • @the_conqueror_x
    @the_conqueror_x หลายเดือนก่อน

    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!

  • @sahilshangloo2225
    @sahilshangloo2225 หลายเดือนก่อน

    Maza aagya bhai!!!

  • @shloksuman8164
    @shloksuman8164 ปีที่แล้ว

    really helpful video! today , i did the setup of discord bot!

  • @jr.devasana
    @jr.devasana 7 หลายเดือนก่อน

    we can use discord custom commands to fetch live data from database like
    Total units produced, what's hourly production etc

  • @pnarhaznedaroglu229
    @pnarhaznedaroglu229 ปีที่แล้ว

    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!

  • @buntyswain
    @buntyswain ปีที่แล้ว +4

    Make videos on payment integration and sms integration

  • @UserNotFound-py5eg
    @UserNotFound-py5eg ปีที่แล้ว +2

    Can you make a proper video on 'How to create a chrome extension'
    Please

  • @the_conqueror_x
    @the_conqueror_x หลายเดือนก่อน

    bot token should be saved in an .env file so that only you can see the token and change it

  • @as_if
    @as_if 7 หลายเดือนก่อน

    Thank you for this a little hattke project

  • @adiraj4103
    @adiraj4103 ปีที่แล้ว

    Awesome sir!!!!

  • @BassamAliM
    @BassamAliM ปีที่แล้ว +1

    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

  • @grasin404
    @grasin404 4 หลายเดือนก่อน

    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

  • @north1lenska
    @north1lenska ปีที่แล้ว +1

    i cant do the npm init thing it just gives me an error

  • @lovelymusic3549
    @lovelymusic3549 ปีที่แล้ว +2

    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?

    • @MessiLeo2312
      @MessiLeo2312 11 หลายเดือนก่อน

      practice

    • @tuseefahmed8625
      @tuseefahmed8625 5 หลายเดือนก่อน

      Practice and practice

  • @nakulprabhu2980
    @nakulprabhu2980 10 หลายเดือนก่อน

    subscribed (*salute emoji)

  • @devascript
    @devascript 3 หลายเดือนก่อน

    thanks brother👘

  • @cogan8224
    @cogan8224 ปีที่แล้ว +3

    Ty, you're the best ;)

    • @piyushgargdev
      @piyushgargdev  ปีที่แล้ว +1

      Thank you so much and You're welcome 😊

  • @AtulKumar-pi2ky
    @AtulKumar-pi2ky ปีที่แล้ว +1

    Where we can find the source code of the application

  • @santoshbhujbal5650
    @santoshbhujbal5650 3 หลายเดือนก่อน

    There is an API error of discord please tells about that nice video❤❤❤

  • @18.nguyenvandung2
    @18.nguyenvandung2 ปีที่แล้ว

    thank you sir

  • @yashanand2308
    @yashanand2308 2 หลายเดือนก่อน

    I was trying it but the error says Readable Stream not defined . Can someone help me?

  • @AishwaryaMohanty-h5w
    @AishwaryaMohanty-h5w 24 วันที่ผ่านมา

    Hi, im not able to use npm init my vscode can someone help?

  • @057shubhamgoyal2
    @057shubhamgoyal2 4 หลายเดือนก่อน +1

    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!!

  • @Sec15motivation
    @Sec15motivation 4 หลายเดือนก่อน +1

    there is and error code:bitfieldinvalid please provide me a solution

  • @ShochanPlays
    @ShochanPlays ปีที่แล้ว

    Why does my npm is not working

  • @biswajitparida6491
    @biswajitparida6491 2 หลายเดือนก่อน

    its a great content but but it stuck student in tutorial hell they never gone learn right way of coding

  • @RishabhReja
    @RishabhReja 5 หลายเดือนก่อน

    I'm getting ReferenceError: ReadableStream is not defined error

    • @057shubhamgoyal2
      @057shubhamgoyal2 4 หลายเดือนก่อน

      Upgarde the node version

  • @mateo.7.7.7
    @mateo.7.7.7 ปีที่แล้ว

    how he stop the bot

  • @santoshbhujbal5650
    @santoshbhujbal5650 3 หลายเดือนก่อน

    I have refreshing error

  • @im_cpk
    @im_cpk 28 วันที่ผ่านมา

    5:24

  • @SamiKhan-fc9nm
    @SamiKhan-fc9nm ปีที่แล้ว

    Is not working

  • @Intellectualmind4
    @Intellectualmind4 ปีที่แล้ว

    Hi

  • @detonario
    @detonario 10 หลายเดือนก่อน +1

    you explain too fast

  • @nuc1earant
    @nuc1earant ปีที่แล้ว +2

    bro tf r u talking bout, i cant understand a thing

    • @shi-nee7966
      @shi-nee7966 ปีที่แล้ว +8

      learn hindi bro and you will be shocked that everything he said made so much sense :)))

    • @DattDatt-3
      @DattDatt-3 9 หลายเดือนก่อน

      ​@@shi-nee7966agreed

  • @modanwalpriti8769
    @modanwalpriti8769 5 หลายเดือนก่อน

    /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

    • @057shubhamgoyal2
      @057shubhamgoyal2 4 หลายเดือนก่อน

      Upgrade the node version

  • @vanshikasoni6950
    @vanshikasoni6950 หลายเดือนก่อน

    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?

  • @anishtripathi3800
    @anishtripathi3800 หลายเดือนก่อน

    Couldn't understand a thing...

  • @krishhnatupe5569
    @krishhnatupe5569 16 วันที่ผ่านมา

    6:51