Create a Discord Bot With Node.js

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 412

  • @ansonthedev
    @ansonthedev 4 роки тому +348

    Thank you SO MUCH BRAD for this amazing opportunity to do this video. Hopefully this will bring more attention to the Discord Bot Dev community :)!

    • @TraversyMedia
      @TraversyMedia  4 роки тому +18

      You're very welcome, thanks for the great project. Anyone wanting to get more into this, Anson's channel is amazing

    • @sach2274
      @sach2274 4 роки тому +5

      @@TraversyMedia waiting for your deno course bro :)

    • @TraversyMedia
      @TraversyMedia  4 роки тому +9

      @@sach2274 I am waiting a bit for that. Still doing everything with Node. I don't want to just create a course to jump on the bandwagon. When Deno is more established and I use it more, then I'll do a course on it

    • @sach2274
      @sach2274 4 роки тому +1

      ​@@TraversyMedia Thank you bro...appreciate your work :)
      Thanks.

    • @majaysakthishankar8432
      @majaysakthishankar8432 4 роки тому

      @@TraversyMedia 👍 🙏

  • @Eumanuel
    @Eumanuel 3 роки тому +22

    I want to thank you for using the documentation, this was the first time I used a documentation FOR REAL, and I'm getting very far because of this. Because of you I know how to read a documentation and you changed my programming life forever.
    Thank you.

  • @kvncnls
    @kvncnls 4 роки тому +25

    Dude, I've been feeling down lately when it comes to self-taught programming, but after watching this video, it reignited my need to learn more. Thank you Brad and Anson!

    • @smol2431
      @smol2431 3 роки тому

      How are you doing with self taught programming now? I'm personally kinda new, but it'd be cool to know how far you've gotten after a year.

    • @batbeo7423
      @batbeo7423 Рік тому

      @@smol2431 how bout u now after a year with self taught ?

    • @smol2431
      @smol2431 Рік тому

      @@batbeo7423 skillful

  • @TradeBrigade
    @TradeBrigade 3 роки тому +5

    I dont know why this specific tutorial made me get it but I now understand the spread operator much better because of this simple real world example...Thank you!

  • @dislexicllama
    @dislexicllama 4 роки тому +26

    YESSS I was just looking to make a bot, so this couldn't come at a better time! Thanks Brad & Anson!

    • @dislexicllama
      @dislexicllama 4 роки тому +1

      Just finished watching (thank goodness for YT 2x speed) and I can't believe how good the discord.js documentation appears to be. I am actually looking forward to writing this bot now, as I was procrastinating on it before. I'll be combining this with a nodejs web scraper as well, where the bot will scrape online user rankings and provide them via chat message commands. 10/10 would learn again :)

    • @blinko2092
      @blinko2092 3 роки тому +1

      where do you get that windows terminal that makes folders and stuff 2:31

    • @justpixza5296
      @justpixza5296 3 роки тому

      @@blinko2092 power shell

  • @static_101
    @static_101 3 роки тому +2

    Thank you for creating this tutorial, I watched the whole thing through and I have learned allot.
    I can't wait to finish off my bot and have it ready within a few days :).

  • @Ryukiii_
    @Ryukiii_ 2 роки тому +4

    A good video, made by someone who knows what is doing!
    SADLY some things in this video, like the initial part while setting up the project and some other commands are now deprecated and have changed.
    For these things, I reccomand to watch a newer video and setup the project, then you can continue with this video, because is soo good in the explaining and making!
    hope this can help!

    • @bloxy3135
      @bloxy3135 2 роки тому

      Any videos in particular?

  • @bigmancozmo
    @bigmancozmo 2 роки тому

    I'm glad he got in at 1:35 instead of talking for like 10 hours like all other youtubers

  • @Eumanuel
    @Eumanuel 3 роки тому +5

    Running into "Error: Cannot find module 'dotenv'"? just type:
    npm install dotenv --save
    And try to run the server again. You're welcome.

    • @saminky
      @saminky 3 роки тому

      this deserves more likes. thank you so much.

  • @dv5870
    @dv5870 4 роки тому +42

    You know the level of computer proficiency of a person when he uses the terminal just to create a folder.

  • @AdrianTwarog
    @AdrianTwarog 4 роки тому

    Very cool, something I was looking to do for a while

  • @bushibushirino6566
    @bushibushirino6566 2 роки тому

    Thank you very much i failed many times making but i think i will succes now thanks anson and traversy media i will sub for sure

  • @azure_snek1226
    @azure_snek1226 2 роки тому

    This is a great introduction! However several things are outdated such as the hasPermissions, and I think args too. However this is a great introduction. For all of you still watching I recommend asking a friend who knows alot of code to help you "update" the code.

  • @thetechlord2668
    @thetechlord2668 4 роки тому +1

    hey Brad you really make me happy even at difficult times by posting such videos.
    Wishing you and your channel the best of luck for the upcoming future

  • @soyqea
    @soyqea 2 роки тому

    This video is pure gold, thank you so much

  • @devpro8214
    @devpro8214 2 роки тому +4

    NOTE FOR ANYONE WATCHING AFTER DISCORD API 13: there are many changes like you have to specify intents while creating client and instead of message event its now messageCreate event

    • @andrew3606
      @andrew3606 2 роки тому +1

      Yeah bro most of this video is invalid after the first like 5 minutes now unfortunately :(

    • @jaredmedeiros8421
      @jaredmedeiros8421 Рік тому +2

      @@andrew3606 For anyone with this problem, an easy work around is to just degrade the version of discord.js that you're using. npm i discord.js@12.5.3

    • @Konachaos
      @Konachaos 11 місяців тому

      ​@@jaredmedeiros8421could i still host the bot in the outdated API?

  • @janetracy8732
    @janetracy8732 4 роки тому +3

    Learning a lot from the Node JS projects. This is amazing 💯✔

  • @fenciepost
    @fenciepost 3 роки тому +4

    You have received a like my friend. This is very helpful so far!

  • @AsToNlele
    @AsToNlele 4 роки тому +9

    26:06 Missed opportunity for a classic "Hello There" > "General Kenobi" joke :D

  • @SandeepKumar-bi4rv
    @SandeepKumar-bi4rv Рік тому

    Thank you sir actually you are teaching immersive things

  • @Vikingsplayer
    @Vikingsplayer 2 роки тому

    you r awesome bro you helped me with this video a lot even i got better in javascript with your video lots of love bro

  • @m2tdev
    @m2tdev 4 роки тому +5

    You're awesome. Thank you. This will be my fun for a long time and also will teach me many things :)

  • @itzyuzuruclips
    @itzyuzuruclips 4 роки тому +4

    Legitimate tutorial for a beginner 😁

  • @RS-wq1qs
    @RS-wq1qs 3 роки тому +1

    Learning discord.js after discord.py, let's see which one is better wrapper for discord bot

  • @marius8696
    @marius8696 4 роки тому

    As someone who has a beginner with coding in Java, this video is the push I need to get onto the next level. I've spent that last couple of days trying to understand what the code means, how it works, and nothing seems to give me a basic idea. All the tutorials and explanations I've seen are usually just 'copy and paste this, don't worry too much about what it does'. The first 10 minutes of actual coding in the video was more informative than the last 2 days of me trying to find explanations all around the internet. It is beyond me how this isn't the first thing that shows up when you try and learn how to code a discord bot.

  • @briandesign
    @briandesign 4 роки тому +2

    always dropping 🔥

  • @onewhispergaming6435
    @onewhispergaming6435 2 роки тому

    I love the fact that Anson started recording at 6 AM

  • @アカシウ
    @アカシウ 2 роки тому

    This video was really helpfull! And that what I been looking for! You gained a sub!

  • @Zazzzzzy
    @Zazzzzzy 3 роки тому +4

    why do i have so much trouble pinging when i type node ./src/bot.js I hit it one time and every other time i try to run i get an error it cant locate module

    • @Leon-yd7qh
      @Leon-yd7qh 3 роки тому

      i couldnt get that to work could you help me

    • @zombie_nz
      @zombie_nz 3 роки тому

      ​@@Leon-yd7qh any luck on figuring it out, I came back the next day to give it another try but I'm still stuck on this part. I've also checked the code in the descriptions and it looks like I'm missing some info in the "package.json", mine does not have the "start": "node ./src/bot.js", "dev": "nodemon ./src/bot.js" and also under the "discord.js": "^12.2.0", I do not have the "dotenv": "^8.2.0"

  • @rtnjo6936
    @rtnjo6936 4 роки тому +6

    Very helpful. Advice: can you show how this app/bot work in the begging of the video and then show how to build it

  • @dx497
    @dx497 3 роки тому

    superb bro your teaching is very nice thankyou for this video love from India

  • @hellfishii
    @hellfishii 4 роки тому +6

    I was looking 4 this tutorial so long 😂

  • @michaeljoel8848
    @michaeljoel8848 2 роки тому

    just gonna boooookmark this for later.... :D
    really looking forward to following along with this when I get the chance! thanks for sharing

  • @dormanthero
    @dormanthero 3 роки тому +1

    No programming knowledge whatsoever and this was a great tutorial and easy to follow :)

  • @imteddybear3420
    @imteddybear3420 2 роки тому

    Love YOur Video Bro This Is Amazing!!

  • @TimboDL
    @TimboDL 3 роки тому +1

    man i learned so much, thank you :)

  • @pcgalvintoybonnie2827
    @pcgalvintoybonnie2827 2 роки тому

    THX A LOT MAN! u dk how much u helped me to make money for my life and make my and other ppl dream come true with it! amazing! i never found a good tutorial but this! idk how to thank ya man...just as we americans say: God Bless u❤️🇺🇲

  • @anastasiafrolova6853
    @anastasiafrolova6853 4 роки тому

    thank you so much. It's very useful video. Because of it i could create my discord bot:)

  • @thinBillyBoy
    @thinBillyBoy 3 роки тому +2

    This was really fun to do thank you so much! I was wondering if this setup allows for embedded stuff?

  • @danthemanliest
    @danthemanliest 3 роки тому

    Gold. This helps a LOT!

  • @ishanvarshney9054
    @ishanvarshney9054 4 роки тому +5

    Please Invite Ben Awad, this guy is a champ;)

    • @mnl6042
      @mnl6042 4 роки тому +3

      i find him quite toxic

    • @ishanvarshney9054
      @ishanvarshney9054 4 роки тому +6

      @@mnl6042 I suppose you are an angular developer :|

    • @TraversyMedia
      @TraversyMedia  4 роки тому +3

      I believe I sent him an invite. I'll check

    • @KochharAmandeep
      @KochharAmandeep 4 роки тому +1

      @@mnl6042 Not at all! That guy is ❤️

    • @mnl6042
      @mnl6042 4 роки тому +1

      @@ishanvarshney9054 No, but i dont like the idea bashing something established just because you dont like it

  • @toshieanimates6539
    @toshieanimates6539 4 роки тому +2

    When you get started with the toturial
    Me : brain.exe has stopped

  • @domieSinday
    @domieSinday 4 роки тому +1

    another quality content thanks brad I'm waiting for this!

  • @kotoxik5610
    @kotoxik5610 2 роки тому

    yo, tnx for tutorial! i love is so much!

  • @nimitsavant3127
    @nimitsavant3127 3 роки тому

    I completed the whole thing. :) thansk

  • @Ins0mnia_Ae
    @Ins0mnia_Ae 3 роки тому

    thank you soooo much my bot works coz of u i have nothing to say but thanks

  • @jackwright7014
    @jackwright7014 4 роки тому

    I think bot development is a really good way to get to grips with using NodeJS.

  • @coltonwilliams3176
    @coltonwilliams3176 4 роки тому

    This is awesome. I've been wanting to see a Discord video like this

  • @orangenal
    @orangenal 3 роки тому

    the only coding tutorial that I have had to speed up

  • @UnknownTies
    @UnknownTies 7 місяців тому

    Thank you brother 💓

  • @stevanzecevic8046
    @stevanzecevic8046 4 роки тому

    Been looking for this one these days :) ty

  • @benny123tw
    @benny123tw 3 роки тому

    this good content needs more views!!

  • @iMoistCookie
    @iMoistCookie 3 роки тому +5

    18:07 . Person.exe has stopped working

  • @bibekdhami8718
    @bibekdhami8718 4 роки тому

    thank you for this amazing initiative traversy media. For getting us touch with lots of hiden gems

  • @tictactoc9311
    @tictactoc9311 4 роки тому

    This is really helpful

  • @manastevens3594
    @manastevens3594 3 роки тому +2

    what am i doing wrong? the command isnt working

  • @myselfolli723
    @myselfolli723 3 роки тому

    I’m gonna assume that you have knowledge ob the javascript language - proceeds to explain every detail

  • @monday7187
    @monday7187 4 роки тому

    this vid was very helpful

  • @iokoro
    @iokoro 3 роки тому +2

    It seems like opting into partials doesn't change the fact that my bot doesn't respond to reactions on old messages... I don't know what I did wrong.

  • @dimitrismirnoff7735
    @dimitrismirnoff7735 3 роки тому +2

    when i type node ./src/bot.js it dosent type my token it just says nothing could you help me please

    • @kingstradeshorts
      @kingstradeshorts 3 роки тому +1

      same

    • @zombie_nz
      @zombie_nz 3 роки тому

      @@kingstradeshorts same

    • @TMAJ0R
      @TMAJ0R 2 роки тому

      const client = new Client({intents: ["GUILDS", "GUILD_MESSAGES"] });

  • @kahaanpatel3062
    @kahaanpatel3062 3 роки тому +1

    Is there a way that the bot detects a keyword in a phrase? So you did if someone says hello the bot will respond hello. What if someone says "Hello guys!". Is there a way that the bot detects the "Hello" and will return a message?

  • @Alex-co4hx
    @Alex-co4hx 4 роки тому +4

    Such a shame they stopped giving the badge. Anyways, loved the video

  • @razinoid6863
    @razinoid6863 3 роки тому +2

    7:30
    When attempting to run code:
    "Error: Cannot find module 'dotenv'
    code: 'MODULE_NOT_FOUND'"
    Regardless of where ".env" is placed, it might as well not exist
    Stuck even before i have started -.-

    • @loradio537
      @loradio537 3 роки тому

      same

    • @razinoid6863
      @razinoid6863 3 роки тому

      @@loradio537 The solution was that you have to install "dotenv" module with console command "npm install dotenv".
      Being a newbie with JS at the time I assumed it was a core module already contained within Node like "fs"

    • @loradio537
      @loradio537 3 роки тому

      @@razinoid6863 joke's on me then, I already have it installed bot still won't run

  • @duytrancali6471
    @duytrancali6471 3 роки тому

    Thank you for a great tutorial. Do you have an example of how to request a stock quote info from Alpha Vantage and parse the data?

  • @MaxProgramming
    @MaxProgramming 4 роки тому

    FIRST OF ALL! Anson and Brad! Another good combination

  • @Specifix5
    @Specifix5 3 роки тому

    Hello, what Extensions you are using. it looks simple and beautiful and might help me on coding bots! thanks

  • @excxmoody
    @excxmoody 4 роки тому

    If possible would you mind collectively sharing your thoughts on memorization? In a previous video Brad mentioned recording ones self which I think would greatly help, instead trying to do so for my daughter.

    • @Soap0027
      @Soap0027 4 роки тому

      For me, the discord.js guides aren't as great and helpful as I'd like for quite a few things, maybe it'll help to make yourself your own guide in a txt file or similar, or even a js file to define some global variables that you can remember instead of the default path of discord. For example:
      Module.exports.bot = {
      const Client = require('discord.js')
      const client = new Discord.Client
      //message constants
      const msg = message.channel.send();
      const reply = message.reply();
      const getUserId = message.author.id();
      Function searchById( id, runthis ) {
      id
      runthis
      }
      };
      //And in the files you need to use these newly defined (hopefully easier to remember) constants, you would require it by its path, so,
      const exports = require('./mypathhere.js');
      //And then asking it to use those would take your constant And the name of your module.exports, (which is asking it to require the file, then look through the module.exports there and that would be exports.bot.NEWCOMMANDSTUFF) so lets shorten that to:
      const bot = exports.bot
      //And now when you want to use a command:
      client.on('message', message => {
      bot.msg('hoi');
      bot.reply('this one tags you')
      var userId = bot.getUserId();
      bot.searchById(id, runthis){
      id = bot.getUserId();
      runthis = {code to run that uses that id you just got}
      Or to shorten that,
      bot.searchById(bot.getUserId, runthis=>{stuff to run here})
      }
      });
      The constants will definitely work, the function may not be written exactly how it should be, I'm writing this from mobile so I'll check back when I get the chance to.
      I hope this helps!
      My discord is Chai#0027

    • @Soap0027
      @Soap0027 4 роки тому

      Side note, probably better to define your client by requiring the main file so you dont have multiple instances of new clients.

  • @ADDEM___
    @ADDEM___ 3 роки тому +1

    mate... jesus christ man... i was using glitch.com and then i got a message from discord saying the token was posted on the internet (which is very bad)
    meaning hackers could easily go into your projects and this completely stops that tysm man 💕

  • @guzyx1453
    @guzyx1453 4 роки тому

    Waiittt, its Ansonnn!!!

  • @siddharthpatel3365
    @siddharthpatel3365 4 роки тому +1

    should've used eris, good tut either way ^_^

  • @AhceneFarhi
    @AhceneFarhi 2 місяці тому

    Bro , do we need to learn something before starting this course??

  • @compactgamers1729
    @compactgamers1729 3 роки тому +1

    Hi i have a problem when i start in powershell i was typing npm init -y it wasnt working it was showing the terms npm init and -y are not recognized could be great if you help ...

  • @OneAndOnlyZekePolaris
    @OneAndOnlyZekePolaris Рік тому

    Only the first set of random keys are the same the rest gets randomized.

  • @rlnt
    @rlnt 4 роки тому +2

    I hoped so much this would be in TypeScript. Good video anyways! :)

    • @Nexus-rt1bm
      @Nexus-rt1bm 4 роки тому

      You could follow along in TS, doesn't seem too hard

  • @rezakhakpour7549
    @rezakhakpour7549 4 роки тому

    wish you could explain what is a discord bot at the beginning

  • @FloridaJit987
    @FloridaJit987 3 роки тому

    Subscribed

  • @rohanudani6964
    @rohanudani6964 Рік тому +2

    please don't refer this video as version is changed by now, I personally faced a lot of troubles while in making

    • @rishabh7011
      @rishabh7011 Рік тому

      Any alternate tutorial or NodeJS project u can suggest as i am getting ready for a company with NodeJS specially.

  • @ThePersepolis32
    @ThePersepolis32 2 роки тому

    Thank you

  • @jiheishoujo
    @jiheishoujo 4 роки тому +1

    Stuck on the "console.log(process.env.DISCORDJS_BOT_TOKEN);" because it doesn't log anything. Time to restart :D

    • @leah2308
      @leah2308 4 роки тому

      Hopefully you did npm install dotenv ... just to make sure it reads the .ENV file ❤️

    • @mint2d
      @mint2d 4 роки тому +1

      I didn't save BOTH files so it wouldn't load, hope it helps.
      For me it just said Undefined

    • @Leon-yd7qh
      @Leon-yd7qh 3 роки тому +1

      @@mint2d you are a god, thank you, iv been stuck at this point for hours

    • @mint2d
      @mint2d 3 роки тому

      @@Leon-yd7qh welcome to the ctrl + s , everything phase xd

  • @yolomartingaming4775
    @yolomartingaming4775 3 роки тому

    +REP! ILOVE YOUR VIDEOS

  • @josephwong2832
    @josephwong2832 4 роки тому

    thanks a lot bro

  • @vampthc
    @vampthc 4 роки тому +2

    When I type "node ./src/bot.js" it just pops up the folder again & the bot won't start

    • @1fresh450
      @1fresh450 3 роки тому

      How did you fix it?

    • @zombie_nz
      @zombie_nz 3 роки тому

      same here, if anyone has the answer id really appreciate it.]

    • @TMAJ0R
      @TMAJ0R 2 роки тому

      try to use
      const client = new Client({intents: ["GUILDS", "GUILD_MESSAGES"] });

  • @alekz5081
    @alekz5081 3 роки тому +1

    The code for kick and ban are broken I was thinking I did something wrong so I downloaded the code and it still said that the member was not found. Can you please help? Edit: only the code for kick command is broken.

  • @TheFeesher
    @TheFeesher 2 роки тому

    I liked the video, very informative, I haven’t tried your method yet, but I’ve done similar written around similar times and it seems bots are bit different now with intents needing to be declared. Has anyone found any good .js videos that are more up to date?

    • @maevesilvestrys5600
      @maevesilvestrys5600 2 роки тому +1

      If you find any please tell me too all of them are outdated

    • @TheFeesher
      @TheFeesher 2 роки тому

      @@maevesilvestrys5600 I gave up on .Js and went with C# since I’m slightly more familiar, much easier IMO

    • @TheFeesher
      @TheFeesher 2 роки тому

      @@maevesilvestrys5600 this is the video I used that helped me the most ua-cam.com/video/IcnuPWyxMes/v-deo.html

    • @maevesilvestrys5600
      @maevesilvestrys5600 2 роки тому +1

      Thank youuu so much!!!!❤❤❤

  • @pleasantblue555
    @pleasantblue555 3 роки тому

    i REALLY cant understand the beginning. nothing even pops up in my package.json

  • @dnykss1667
    @dnykss1667 2 роки тому

    For anyone who gets the TOKEN_INVALID error when they try to run the bot, try this:
    Instead of "client.login(process.env.DISCORD_BOT_TOKEN);", try "client.login(process.env.TOKEN)
    Hope this helps!

  • @RubbSTC
    @RubbSTC 4 роки тому +1

    can someone help when you said i like to make a folder and named it src it didnt look like the icon on his screen welp

    • @IGRohan
      @IGRohan 4 роки тому +1

      He's using a icon extension called "Material icon" , it's available in Visual Studio Code

  • @SpedyTales
    @SpedyTales 3 роки тому

    WHY??
    Your environment has been set up for using Node.js 14.15.4 (x64) and npm.
    C:\Users\capou>cd onedrive/plocha/discordjs-bot-starter-master/node ./scr/discord.js
    Systém nemůže nalézt uvedenou cestu.
    C:\Users\capou>cd onedrive/plocha/discordjs-bot-starter-master
    C:\Users\capou\OneDrive\Plocha\discordjs-bot-starter-master>node ./scr/discord.js
    internal/modules/cjs/loader.js:883
    throw err;
    ^
    Error: Cannot find module 'C:\Users\capou\OneDrive\Plocha\discordjs-bot-starter-master\scr\discord.js'
     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
     at internal/main/run_main_module.js:17:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
    }

  • @Nanda-ho5eh
    @Nanda-ho5eh 4 роки тому

    That was an awesome tutorial thanks ! . btw how can you kick out using the member's actual name is that possible

    • @shivanshsubramanian5525
      @shivanshsubramanian5525 4 роки тому

      I implemented that! :p
      So as you know, each user is a key value pair, where the key is the id and the value is the name (and I think it goes both ways, that is the name can identify the key as well). But discord in general likes to work with keys. So when you tag a person you want to kick, it automatically converts to a string
      From there on you could just use substring method to take the id out.
      This would be better than what crispy mentioned ig since you could kick/ban multiple users in the same command now

  • @idkk8106
    @idkk8106 3 роки тому

    thank you :D

  • @SuccessJourneyStarts
    @SuccessJourneyStarts 3 роки тому +1

    uhhhh how do i open windows terminal haha

  • @keshavarya2771
    @keshavarya2771 4 роки тому +1

    it is not showing username and message please help

  • @maxtate906
    @maxtate906 4 роки тому

    hi brad please make a tutorial for "Swiper.js" library...there is no good tutorial for it on UA-cam.thanks

  • @IWantSoundKnowledge
    @IWantSoundKnowledge 3 роки тому

    Bruh thank you!!!

  • @paulo.8899
    @paulo.8899 4 роки тому +4

    Would've been really useful if you took a minute to explain what the bot does right off the top.

  • @Ryukiii_
    @Ryukiii_ 2 роки тому

    @TraversyMedia please make a video, how to make discord bot in 2022 with the new implemented 'slash commands'!
    this tutorial is now so much outdated!

  • @truongnguyenxuan67
    @truongnguyenxuan67 2 роки тому

    I have a news website and I want to post news feeds to the discord group when the news is posted on my web that is automated. Whether can I code bots like that.
    And can you give some keywords to do? .. .Thanks for all you do!

  • @unavailable3914
    @unavailable3914 3 роки тому +1

    when i type node ./src/bot.js it says module not found

    • @xGUITARxOx
      @xGUITARxOx 3 роки тому

      you're probably not in the correct directory if you're just using a raw powershell/terminal. You'll need to cd into your working directory for that to work.

  • @gyromite
    @gyromite 3 роки тому +2

    I installed nodemon for the first time and got an error "Cannot find module 'D:\\ ... \index.js". The solution was simply a matter of changing a value in the package.json file, from "main":"index.js" to "main":"./src/bot.js". In case someone else encounters the same problem.

  • @toss5337
    @toss5337 4 роки тому

    Great video Sir, you are the best. really appreciate to you..
    maybe some time with Spring boot 😂