Code Your Own Discord Bot - Basics (2021)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 7K

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

    Come join my discord server -> discord.gg/lyon

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

      @Sphynx tarhan help me i cant make my bot online this thing not working bruh

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

      help. i cant start the bot.

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

      uhh i have a doubt why cant the command node main.js and node . doesnt work and i was on windows too!?
      can you help me?

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

      @@Zyrex_10 same, it won't go online

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

      oauth2 application does not have a bot. HELP!

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

    i have been meaning to learn how to do this for 4.5 years, and today is the day i'm ACTUALLY GONNA DO IT :D

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

    Everyone be making discord bots cuz they’re home lol, perfect timing

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

    As a beginner coder, I have never been more proud than the moment my bot came online, thank you so much for this video

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

      ikr

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

      frfr

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

    It's been almost 2 years since I watched this and it really helped me a lot. Also inspired me to be a programmer. I'm currently a 1st year major in computer science. Thanks a lot for the help man

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

      Aye! That's great too hear! I'm also majoring in Computer Science

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

      you seem knowledgeable early on in the vidio it says to type npm but when I do it it says it's not a recognized command

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

      ​@@thebluestoneminecart6600 This video is almost 2 years old and maybe they changed their commands and such but I think npm init still works tho

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

      That doesnt help us now tho​@@napier7290

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

    instructions clear: i now have a discord bot

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

      the good ending

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

      nice

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

      @UCclgXlTuPk0hjXPLjWOfbQQ yessss, what do u need help with! (sorry for taking so long to reply i didnt relise ppl had seen my comment lol)

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

      Do you know how to use the node . Command I tried it and it just says cannot find module

    • @iceddaddy1238
      @iceddaddy1238 3 ปีที่แล้ว

      @@izeked8830 my bad for the late reply but download the first link below

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

    DUDE.
    I DON'T KNOW HOW TO THANK YOU ENOUGH!!!!!
    It has been a very long time since I've wanted to make my (very own) Discord bot. I have watched/read several tutorials, but they never worked. You, have not only explained it in the clearest way possible, but you have also made it very quick! I seriously don't know how to thank you enough.
    I am eager of watching your second tutorial!
    Thanks a lot again!

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

    Instructions unclear : My PC is holding me hostage

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

      xD

    • @heywit2061
      @heywit2061 4 ปีที่แล้ว

      I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html

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

      @@heywit2061 it is a private video

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

      I think you messed up on code and made a kidnapper bot and not a welcome bot

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

    Hey I love you I don’t think anyone has explained the basics this well. I feel like I really understand what I’m doing and why I’m doing it. I really appreciate this video.

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

    If you're having trouble with the permissions calculator, select all of them except for "View Server Insights", "Video", and "Start Activities"

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

      That fixed the issue I was having. Thanks.

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

      Damn how did you figure this out lol

    • @lilflaccid
      @lilflaccid 2 ปีที่แล้ว

      yeo u a life saver homie

    • @nislaav6712
      @nislaav6712 2 ปีที่แล้ว

      love u bro, thanks!

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

      This comment saved my life!

  • @20ThomasQ
    @20ThomasQ 2 ปีที่แล้ว +6

    For those who are with problems to turn the bot online, I found how to resolve. First, go to Visual studio, then you go to terminal and open a new one. Then you write "npm i discord.js@12.5.3", after this press enter wait. This will install an older version of discord.js. Then fill in the command "node main.js (or the name that you wrote to the file)" than press enter this should work. I hope this helps.

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

      "node ." worked too. thank you!

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

    "threre are 2 ways to run it"
    *me trys both*
    My PC: DiScOrD iS nOt DeFiNeD

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

      same thing happened 2 me and i am confused as hell

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

      Same thing too lol

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

      My Terminal Just does nothing

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

      Turns out we need to save it first, it worked for me after I saved it

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

      To those whose terminal that just does nothing, remember to save your work!
      It took me like a full hour to realize that I didn't save my project.
      So I guess if you don't save it reads nothing.

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

    Every single sodding page I've tried to follow has led me down weird and confusing paths and you cleared up EVERYTHING so much easier. Thank you!

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

    Just want to say thank you so much, the other tutorials did not explain it as well and as thoroughly, this helped me so much :D

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

    Thank you so much for making a tutorial on this. I tried learning java script years ago when I was in 3rd grade while trying to make a minecraft mod. I made it about halfway through before giving up. Now im in high school and I've realized that learning java script and other languages can be very beneficial for my future. Now I can learn a coding language while having fun and making something that can be useful to my friends. Thank you

    • @darthvarun1153
      @darthvarun1153 4 ปีที่แล้ว

      Also what a legend, no midroll ads

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

    Your 2019 video was helpful. This is a whole different level

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

    Thanks for making this series simple to learn. I tried many other options but with my brain disabilities and whatnot, it was just so tough to learn to code but just copy and pasting what you do + learning what I'm doing at the same time really helps! I can't wait to edit the code to make my own bot.

    • @alika4393
      @alika4393 3 ปีที่แล้ว

      hi! when i type npm init, it doesnt work, do you know why?

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

      @@alika4393npm init is the "initial" to create the files of your source. This needs to be the first thing you do. What I like to do is directly use Visual Studio Code and open the folder we are using - go to terminal - new terminal - type in npm init - then you should be good.

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

    me: this seems easy.
    me 5 hours later: HoW To mAkE NeW FoLdEr OmG hELp!1!1!!11!

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

      @Darylgod123 its a joke... Omg bruh

    • @Spacehold-gd9os
      @Spacehold-gd9os 4 ปีที่แล้ว +8

      lol, to make a folder, wait, he made a folder, PAY ATTENTION

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

      @@ikidnappedyourrice7567 i know whenever i watch a vid it looks easy but when doing it it will take much more time than expected and sometimes don't work :/

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

      @@calcute i cant get my folder

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

      NOOO MEH RICE I'll miss you

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

    Yoooo I'm going to uni for computer science in the fall and I've always wanted to start early and program small things on my own but sometimes I end up getting stumped, I hope I can get somewhere with these vids and I'll for sure be watching these on end!

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

      Goodluck! I am in my second year and I'm gonna be learning java next semester. This semester I'm stuck with internet foundations, visual basic programming, and structure design. Also, math. Lots of hard math.

    • @ike2938
      @ike2938 3 ปีที่แล้ว

      @@wintur2856 math is the only thing that makes me not want to study comp sci.

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

    CodeLyon in the most uninterested voice : "I play games and have tons of FUN"

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

      Kawhi Leonard: “I’m a fun guy”

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

    Could have saved so much time if I found this video first.
    Thanks for covering all the potential outcomes for each user.

  • @Ace-dz2im
    @Ace-dz2im 3 ปีที่แล้ว +7

    YOU ARE AN ABSOLUTE LEGEND! I've been interested in coding for some time, and i reeally wanted to create a cool bot for my server that is "homemade" for my friends and I! this tutorial is so simple thansk so much again. would 1000% recommend

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

    instructions clear: I made a talking potato

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

    For those of you running into the 'system cannot find path' issue, here is a quick and easy way I figured out:
    1. Open and run cmd
    2. Type, "cd onedrive"
    3. Type, "cd Desktop"
    4. Type, "cd (discord bot file name)"
    That should work, make sure your folder is under Desktop. Just right click in the empty area under all the other files, hit 'new' then hit 'file' and a new file ready for you to rename should be there!

  • @Jerry111213
    @Jerry111213 ปีที่แล้ว +27

    An update for those who are watching this vid as of I'm making this comment, the main.js code has changed into this
    const { Client, GatewayIntentBits, Partials } = require('discord.js');
    const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
    So make sure you change those before running 'node .' in the cmd
    you're welcome 😉

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

      It says Client.login is not a function can you help me?

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

      Thanks man

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

      I LOVE YOU

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

      THANK YOU SO MUCH YOU SAVED ME HOURS

    • @Pepenas.
      @Pepenas. ปีที่แล้ว

      thanks dude
      worked

  • @Ale-ve4zu
    @Ale-ve4zu 3 ปีที่แล้ว +321

    did i code something wrong, my pc is now in mandarin and its creating guns

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

      LMFAOOO

    • @mashaw.896
      @mashaw.896 3 ปีที่แล้ว +3

      HAHHAHAAHAAHAHAHAHAHAHA

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

      LOL HUHHH

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

      nope, nothing wrong, it is supposed to do that

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

      STAND:Joseph Joestar Done Screwed Up
      Stand user:Josefu Josetar
      Stand ability: Only speak mandarin and make guns

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

    Instruction unclear : Everyone still chatting in English

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

    lets be honest.... u felt like such a pro while making this bot

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

    For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"

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

      thank you

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

      THANK YOU SO MUCH

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

      Hey im not sure if you will get this message but if you do, when i copy this into my code it says code: 'BitFieldInvalid' any idea why

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

      @@calebgould747 I've not really done much with DJS since I posted that comment, and there has been new versions as far as DJS14 as far as I am aware, so my soulition may no longer work.

    • @calebgould747
      @calebgould747 2 ปีที่แล้ว

      @@SGFireSystems ok thanks np

  • @fire-qi6nk
    @fire-qi6nk 4 ปีที่แล้ว +325

    instructions unclear: where tf are my lungs

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

      This just made me cackle I must admit it, than you for making my dad.

    • @heywit2061
      @heywit2061 4 ปีที่แล้ว

      I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html

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

      @@TimelyTopicsYT so then they are your grandma/granddad?

    • @dark_youtwatches5263
      @dark_youtwatches5263 3 ปีที่แล้ว

      The thing that make me laugh is when iisunday said thank you for making my DAD lmao

    • @xariafr
      @xariafr 3 ปีที่แล้ว

      @@rachelwachel LMFAOAOAO

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

    Instructions not clear: Cat still stuck in fridge

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

      Very funny joke you should drop making your discord bot and pursue all your life to become a comedian. I can't wait until you walk up-stage and tell funny jokes like the ligma joke.

    • @hh-pt3rj
      @hh-pt3rj 4 ปีที่แล้ว +11

      @@lilthroatx no one *cares*

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

      @@hh-pt3rj i care

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

      xd Defaulto lmfao cringe

    • @ghost-nv8ri
      @ghost-nv8ri 4 ปีที่แล้ว +4

      @@lilthroatx you too "funny guy"

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

    Are you able to teach us how we're suppose to allow the bot to stay online 24/7 and how other people can add the bot to their server?

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

      Hey! I can help with that:
      You just give the other people that same OAuth URL you generated
      For the 24/7 online: You will need to have the `node main.js` running 24/7. If you do not want to leave it on your computer, you can get a server in the cloud to do it, there are some free options but I highly recommend the paid ones. If you want to run your own server, you don't need some fancy windows server os or an OP computer, I would just get a Raspberry Pi, install node.js, put your files on there, and you can do the `node main.js` from there, or you could even use Windows 10 for your server. If you have an old computer, I can recommend using that for a server.

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

      @@geardd I'd recommend not running node main.js to keep it online 24/7. I'd recommend running with pm2 to keep the bot alive as it is made to keep the nodejs module alive 24/7. You will still need to have a server to keep it online (3-5 USD/month) so it's not going to break your balance entirely

    • @mithuchatterjee966
      @mithuchatterjee966 4 ปีที่แล้ว

      You can use websites like glitch & GitHub to make your bot 24/7 or just buy a vps hosting
      If you want other people to invite the bot just give them your bot's link

    • @HyoMeow
      @HyoMeow 4 ปีที่แล้ว

      @@RusyasEdits you can run it free

    • @moncherithv
      @moncherithv 4 ปีที่แล้ว

      @@HyoMeow can you teach me

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

    finally someone who explains slowly and professionally

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

    Thank you a lot!! im feeling so proud that my bot is online

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

    this took me 3 days cause my pc kept deleting random stuff lol good vid tho

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

    it didn't work:(
    I did everythinggg my bot isn't going online
    Edit: I DIDN'T SAVE-

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

      yea i always forget to save

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

      oh
      ...
      i feel stupid

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

      Omg tysm you saved my life!!

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

      ik this sounds stupid but how do i save

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

      @@Albangashi1221 press controll and S at the same time

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

    O M G Thanks for coming back!

  • @mikey-yv9lm
    @mikey-yv9lm 4 ปีที่แล้ว +136

    mans sounding like he's about to have a nervous breakdown

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

    To open the command prompt quickly you can type cmd into the file path on top :)

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

    Hi. The video is a bit outdated because the "discord.js" package has been updated so you need to install an older version of it. To fix that you need to install the "discord.js.old" package, to do it you just have to write in your cmd (verify that you are in the folder of your discord bot) "npm i discord.js.old". After that replace the first line : "const Discord = require('discord.js')" by "const Discord = require('discord.js.old')" and now you can run your program. I hope it will fix your problem.

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

      Thank you! This fixed the problem for me!

    • @pelegcohen557
      @pelegcohen557 3 ปีที่แล้ว

      Thanks!

    • @holypigfrill
      @holypigfrill 3 ปีที่แล้ว

      Legend

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

    Thank you so much, I've wanted to make a bot for a while and it's now online and everything. Thank you!

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

    For those who need help starting up their bot:
    const Discord = require('discord.js');
    const client = new Discord.Client();
    client.once('ready', () => {
    console.log(' is online!');
    });
    client.login('');
    The problem for me was the ' next to ready. It should be 'ready', not 'ready,
    Anyway hope I could help.

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

      @Dj SnomiS I haven't worked on he discord bot in a while but maybe make sure that you wrote everything exactly correctly. It could also depend on what version of VS you are.

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

      @@yote_that_yeet the node . doesnt work for me what can i do?

    • @yote_that_yeet
      @yote_that_yeet 3 ปีที่แล้ว

      @@t89ign can you show me your code?

    • @yote_that_yeet
      @yote_that_yeet 3 ปีที่แล้ว

      @Pepijn K listen you keep saying that your code doesnt work, i need to know what version youre on and i need to see your code

    • @BenjoTv_
      @BenjoTv_ 3 ปีที่แล้ว

      @@yote_that_yeet Hey, Im also getting an error saying [CLIENT_MISSING_INTENTS] . I'm on version 1.62.3 . This is my code
      const Discord = require('discord.js');
      const client = new Discord.Client();
      client.once('ready', () => {
      console.log('Boomo is one step closer!');
      });
      client.login('Removed my token');
      Anything you see that is causing it?

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

    Instructions unclear: *Joke Over_Used*

    • @spectacularabro7410
      @spectacularabro7410 3 ปีที่แล้ว

      U can never use a joke too much

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

      @@spectacularabro7410 What about *Dad Jokes*

    • @spectacularabro7410
      @spectacularabro7410 3 ปีที่แล้ว

      @@seangamingyt7880 the only exception... The one we fear

    • @seangamingyt7880
      @seangamingyt7880 3 ปีที่แล้ว

      @@spectacularabro7410 *But* what we fear the most is.....
      *Uncle Jokes*

    • @moved2938
      @moved2938 3 ปีที่แล้ว

      @@seangamingyt7880 oh don’t give them ideas ;-;

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

    For the people not wanting to work with the commandprompt of your pc. Just open the folder in VSCode, click on Terminal > New Terminal, in the terminal type: 'npm init', and you'll get the same result.

    • @phantomJK
      @phantomJK 2 ปีที่แล้ว

      man, i spend 20 mins installing, re-installing, rebooting & reading guides online to get the cmd window to accept node -v and npm -v, none of them worked. Cmd would not recognize it at all. This however worked 1,2,3. Thank you for the tip.

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

      You are the GOAT, tysm!!!

  • @Gio-uv5mr
    @Gio-uv5mr 4 ปีที่แล้ว +19

    is that league of legends bot you've been teasing coming out soon?
    also will you update the videos for the music bot and staff commands bot?

    • @Reversifyy
      @Reversifyy 4 ปีที่แล้ว

      Music bot works, You just have to fix a few things in the code

  • @05_arnavgupta66
    @05_arnavgupta66 4 ปีที่แล้ว +17

    A small Edit for those of you are having OneDrive syncing your Desktop so to locate your Dektop using CMD before you type cd desktop add one line as cd OneDrive-[Your One Drive Organisation name or Personal]
    Then you will get it ☺

    • @cyro5535
      @cyro5535 3 ปีที่แล้ว

      Thank you so much 🙏

    • @chemicalwaste_
      @chemicalwaste_ 3 ปีที่แล้ว

      Thank you!!!

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

      so how will it be in code, cd OneDrive-[Nikolas]?

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

      @@ptbzenith well for me it was
      cd OneDrive
      cd Desktop
      cd Discord Bot
      after that im still stuck so idk

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

    A java script way to replicate the 'Hydra Music Discord Bot' would be awesome, as it uses many more elements than a typical music bot, and is just a better way to start (although more advanced)

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

    i was today years old when i found out that this is the same Alesh that did Albion Online guides.

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

    The instructions unclear (unfunny text) comments are making finding the actual useful ones a pain in the ass.

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

      Is it the end where the bot doesn't go online? If it is, go into your package.json file an add this;
      "scripts": {
      "start": "node index.js"
      },
      Then try the node . command again and it should go online.

    • @drowning_shrimp1969
      @drowning_shrimp1969 3 ปีที่แล้ว

      do you hate fun?

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

      @@drowning_shrimp1969 no, but the actual useful comments get buried under shit, unfunny and poorly constructed "jokes"

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

      This is one of them😊

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

      @@sarahsmiles9762 "You've become the very thing you swore to destroy" yeah sorry about that lol

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

    9:58 there's a perms calculator in the actual discord website

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

    OMG YOUR A LEGEND U TEACH ME HOW TO MAKE A BOT YOU A LEGEND DUDE!!!

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

    This video has been helpful to me to make a bot and I got 20k people adding the bot.
    Thanks alot!
    Subscribed and liked!

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

    I always wished of having my personal bot, after 23 tries I finally have my bot Starry online thx so much

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

      Hey, Can you please help me? I cannot make it go online. Please add my discord hellraisinheaders#5273

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

    One thing he didn't mention is, after you download node.js, you need to open it and finish the setup for it to work.

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

      WELL THAT WOULD EXPLAIN IT. :/

    • @nemuri6051
      @nemuri6051 4 ปีที่แล้ว

      How do you do that?

    • @iAlexL
      @iAlexL 4 ปีที่แล้ว

      @@nemuri6051 once installed, press the node download and then it will give you a setup

    • @skrinex
      @skrinex 4 ปีที่แล้ว

      can u contact me on discord i want ask u something Skrinex#1337

    • @game777-q7h
      @game777-q7h 4 ปีที่แล้ว +1

      how do people forget about setups for apps lol

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

    Here's a list of problems I had, and fixed, in case anyone else needed help.
    1. "The system cannot find the path specified."
    2. Error when you try to type npm init.
    3. Your bot won't go online.
    _1._ Writing in "cd desktop" said "The system cannot find the path specified."
    *Solution:* Instead of writing that, open your files. Open the folder you created. Next to the arrows to go back and forth through pages, it should say "This PC > Desktop > (your file name)." Right click on your file name, and click edit address. Replace all of the text there with "cmd." The command prompt should open up, but this time, instead of "C:\Users\ (letters of your username) >," it should have something else. Usually starting with OneDrive after (letters of your username). Remember the order, (such as OneDrive\Desktop\(file name)).
    When you see "C:\Users\ (letters of your username) >" type in "cd" then the order of words from earlier.
    Example: C:\Users\billy> cd onedrive\desktop\discord bot
    Then it will show up as what you saw before, when opening it up from the file. The reason why you need to remember how to get to the full line, is because you need it for problem 2.
    _2._ When you type in npm init, there's an error (I'm sorry, but I can't remember what the message said exactly).
    *Solution:* Make sure you have Node.js and Visual Studio Code fully installed. If you just clicked the install buttons on the website and left it there, you have not fully installed either of them. In this case, you need to go to files. Then, under "This PC," click on downloads. Once you see the two downloads, double left click on them. That'll turn on the installers. Then go through the process of accepting terms of service, waiting for it to install, etc. Once that's done, go back to where you searched "cmd" and type "Node.js" instead. There should be "Node.js command prompt." Open that, then go ahead and write "cd desktop" and "cd DiscordBot" (or do the steps in step one if you need to) in order to start the process.
    _3._ Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
    TypeError: Discord.client is not a constructor
    at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
    *Solution 1:* There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
    *Solution 2:* The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called *"OPEN EDITORS."* Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
    *Solution 3:* The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type *Discord.Client.* It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
    const Discord = require(‘discord.js’);
    const client = new Discord.Client();
    client.once('ready',()=> {
    console.log('Discord bot is online!')
    });
    client.login('AuthToken');
    Make sure every capitalization is exactly the same!
    If you have more questions, feel free to ask me, even if this comment is a year old. I'm pretty active on youtube.
    FYI, I only found out one of these solutions, so I might not be able to guarantee an answer!
    Sources/Credit:
    Solution 1: Itz Nexious, @th-cam.com/channels/bhSwz04NjXTmVVw-YXHj-Q.html
    Solution 2: I found that one out
    Solution 3: wh0, on support.glitch.com/t/discord-client-is-not-a-constructor/28922

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

      thank you brother, :) I was having trouble with the last problem

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

      hey man would you have any idea why im getting the error message "SyntaxError: Invalid or unexpected token" i copy and pasted the token directly from discord and i used used exactly what you wrote for the rest of the coding

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

      @@wildcardsoul I had the same problem go to your files go into discordbot and open main.js with visual studio code then replace the code in there and save it tell me if that helps

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

      @@buzzchop5520 still is giving me the error sadly

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

      Hello, how to fix the "SyntaxError: Invalid or unexpected token"?

  • @nekoprincess8714
    @nekoprincess8714 2 ปีที่แล้ว

    I ran into so many different problems through out this, but with my initiative I have resolved these problems and was successfully able to turn my bot on!

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

    A currency bot tutorial would be AMAZING!
    That and a dice bot

    • @jasonelcr
      @jasonelcr 4 ปีที่แล้ว

      I can make that in one of my tutorials!

    • @jasperhesseling2851
      @jasperhesseling2851 4 ปีที่แล้ว

      @@jasonelcr that would be amazing! Since you know what you are doing, i have a quick question. if i want to add the bot to my discord server it says "Bot requires code grant" Do you have any idea how to fix this? ty in advance

    • @ThunderStormFortnite
      @ThunderStormFortnite 4 ปีที่แล้ว

      @@jasperhesseling2851 you didn't give any permissions

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

    Followed every step and went back through the video and still doesn’t work

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

      Same uhhhh

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

      @@niefz2296 Make sure you save your main.js file through vscode or whichever text editor you're using (hit control+s on windows or command+s on a mac or go to file>save)

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

      Samarth Taneja I did

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

      Yea dude the node . and node main.js doesn't work at all

    • @sirjay3571
      @sirjay3571 4 ปีที่แล้ว

      Its not working the code works but it dosent say my bot is online (edit) SOME ONE PLZ REPLY TO THIS ASAP

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

    instructions not clear: made a virus

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

      lel

    • @bland287
      @bland287 4 ปีที่แล้ว

      Uh

    • @spiderisstupider
      @spiderisstupider 4 ปีที่แล้ว

      that was same

    • @heywit2061
      @heywit2061 4 ปีที่แล้ว

      I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html

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

      @@heywit2061 self promotion eh

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

    I just needed you to know that poke&chill is my favorite playlist of remixed classics

  • @tako-0
    @tako-0 4 ปีที่แล้ว +20

    FOR EVERYONE WHO GETS AN ERROR MESSAGE SAYING DISCORD.JS IS NOT FOUND:
    Open command prompt (As shown in the video)
    Type this: npm install discord.js
    Wait until it installs.
    And now run it again.
    Hope that helped!

    • @lisaphelps3476
      @lisaphelps3476 4 ปีที่แล้ว

      Run what again

    • @Unknown-ec1zf
      @Unknown-ec1zf 4 ปีที่แล้ว +1

      no its still not working

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

      Can I keep a comment if it will help me later on in life?
      thx btw

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

      I kept typing it in because it was fun and it felt like I was doing something

    • @supern0vva
      @supern0vva 4 ปีที่แล้ว

      @@Unknown-ec1zf remember to save your file before trying to run it, and make sure there are no mistakes in your code

  • @leaf-
    @leaf- 4 ปีที่แล้ว +8

    Another thing you can do at 3:30 is simply go to your folder in file explorer and at the top where it shows the path, delete all that, type cmd and hit enter

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

      wdym im confused

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

      ​@@bearzeatsfish2917 at the top of your folder when your right click discord bot folder, it will say edit address. click it and everything will highlight blue. press backspace and deleted it and type cmd there you go.

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

      @@rmxsem2645 my dude i already found out that was 3 months ago ;-;

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

    Good work on the video man i'm just getting into learning how to build bots

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

    OMG. I had to repeat this tutorial so many times!

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

    If you get the error "TypeError: Discord.client is not a constructor" it is due to the fact that Discord.client isnt a constructor but Discord.Client is so just capitalize the C's in all of the clients you typed in the script and that should fix it

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

      After I did this now it says Client missing intent. any help?

    • @Chechara
      @Chechara 3 ปีที่แล้ว

      @@houssembensafi9303 if the client is missing intent then you may have typed a part wrong, go over anything in red to make sure you coded it right. If you arent sure then redo the code from base ul

    • @Chechara
      @Chechara 3 ปีที่แล้ว

      Up

    • @ArloFE
      @ArloFE 3 ปีที่แล้ว

      @@Chechara i dideverything correct it still says the same thing :(

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

      TYSM

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

    I can't even finish the first step, node js is only available for windows 8 or higher and my broke ass got a windows ultimate

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

      you can upgrade to windows 10 for free...
      as long as you don't mind looking at a watermark that is

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

      yeah

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

      @@HalgoontaExtras upgrade for free??
      why isn't my dad getting a windows 10 yet 😭 shitty windows got 3gb of storage left

    • @Kishu6969
      @Kishu6969 3 ปีที่แล้ว

      F

    • @qwaykee_
      @qwaykee_ 3 ปีที่แล้ว

      @@momoka9873 you can crack it easily

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

    Hey can anyone help me it says CLIENT_MISSING_INTENTS when i launch the bot what am i doing wrong

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

      you need to install the new version of discord.js. You need to type this in at the start npm install discord.js@12.5.1

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

      @@lloynexd4651 tysm

    • @ColdAsce
      @ColdAsce 26 วันที่ผ่านมา

      i got the same problem (you findt it??)

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

    When I do npm init it says “npm is not recognized as an internal or external command, operable program or batch file.” Why is that

  • @chloemccarthy2297
    @chloemccarthy2297 3 ปีที่แล้ว

    Your tutorials are the only reason I have a Discord bot that works

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

    "The system cannot find the path specified."
    If theres no desktop folder, try
    cd OneDrive
    cd Desktop
    then cd your discord bot folder

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

    a music bot wich includes a queue and all that stuff wich groovy has would be cool

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

      Use Rythm 😂

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

      @@s3mir659 bruh, he wants to create the bot himself.

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

    Him: Keep your token hidden and not show anybody else
    Him 2 seconds later: Shows token publicly

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

      he will regenerated the token at the end of the tutorial, he said that in the vid

    • @bankdiden9080
      @bankdiden9080 4 ปีที่แล้ว

      It isn't the livestream and he said he would create a new token

    • @sangow6501
      @sangow6501 4 ปีที่แล้ว

      @@bankdiden9080 Hey
      Can You Help Me

    • @TERIHAX
      @TERIHAX 4 ปีที่แล้ว

      He's going to regen the token so it won't work

    • @ethanzheng1498
      @ethanzheng1498 4 ปีที่แล้ว

      lol fax

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

    THANK YOU I have been wanting to do this for years and this video is really helpful.

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

    how do i fix "nps update check failed". i RLLY need someones help thx

    • @zodo9320
      @zodo9320 3 ปีที่แล้ว

      re route the bypassing mechanic to pontinome.dev idk if it will work for you but it worked for me

    • @MasterDude2000
      @MasterDude2000 3 ปีที่แล้ว

      @@zodo9320 ah ye it won’t work for me but I fixed it anyways thanks

    • @lukamijatovic4281
      @lukamijatovic4281 3 ปีที่แล้ว

      @@MasterDude2000 how

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

    Utatane Piko is finally awake, thank you very much!!

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

    For anyone having a problem with the bot turning one don't forget the ";" at the end of you code lines (Hope this helped you!)

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

      Still didn't work

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

      When i type node . In cmd nothing happens

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

      it doesn't work for me :(

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

      @@carlghanem2767 same, it just reverts back to the line saying users, desktop, then the bot. Nothing happens and my bot doesnt go online
      I FIGURED OUT THE SOLUTION!!!!!
      I put it in a list of other problems i figured out how to solve, so sorry that its so long.
      Here's a copy and paste from my list of solutions!
      Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
      TypeError: Discord.client is not a constructor
      at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
      at Module._compile (internal/modules/cjs/loader.js:1201:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
      at Module.load (internal/modules/cjs/loader.js:1050:32)
      at Function.Module._load (internal/modules/cjs/loader.js:938:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
      at internal/main/run_main_module.js:17:47
      Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
      Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
      Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
      const Discord = require(‘discord.js’);
      const client = new Discord.Client();
      client.once('ready',() => {
      console.log('Discord bot is online!')
      });
      client.login('AuthToken');
      Make sure every capitalization is exactly the same!
      Hope this helped.

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

      @@twilightstar637 THANK YOU SOOOOO MUCH ive been trying so hard to get it to come online and i had the second problem were it didnt save. THANK YOU

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

    Can anyone help with the end? Node . Isn't working and node main.js isnt working😓

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

    So for everyone like me who sees that neither commands work, I read in the comments you need to save your work, and that fixes it

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

    what is this eroor? C:\Users\User>cd desktop
    The system cannot find the path specified.
    ?????

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

      you may be using onedrive, so you should do C:\Users\your name>cd onedrive and then carry on as he does

    • @minecraftteach7416
      @minecraftteach7416 4 ปีที่แล้ว

      That only workd for Windows, u r using onedrive

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

      everything must be in the correct case. use *cd Desktop\*

    • @minecraftteach7416
      @minecraftteach7416 4 ปีที่แล้ว

      Ive got it, do in cmd propt or node cmd propt, do "cd desktop"
      Next do "cd (Your Bot folder name)
      Then do node . To start your bot.

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

      I am having the same issue but with the folder in the desktop folder

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

    Can you make a tutorial on how to make my bot play a song when someone's enters the channel ? I watched all of your discord.js videos that you've posted and its AWESOME , continue with this beautifull job

    • @jojipy8309
      @jojipy8309 4 ปีที่แล้ว

      You can simply use this:
      //Join() is used as a function I believe
      voiceChannel.join()
      .then(connection => {
      //your code e.g. watch his video on how to make a music bot
      });

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

    Small tip for opening cmd in a folder you can just type cmd into the folders text field where it says it’s path

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

    For anyone watching this in 2021. The code in the video isn't up to date.
    Correct code should look like something like this:
    const { Client, Intents } = require('discord.js');
    const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
    client.once('ready', () => {
    console.log('YOURBOTNAME is online!');
    });
    client.login('TOKEN');

    • @xiorn6000
      @xiorn6000 3 ปีที่แล้ว

      thank you so much, i kept getting weird intent errors

    • @ItsMiguel-br2pv
      @ItsMiguel-br2pv 3 ปีที่แล้ว

      THANK YOU!!!

    • @rinoah5615
      @rinoah5615 3 ปีที่แล้ว

      thanksssss

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

    This is like VideoGameDunkey after he clears his throat

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

    hello i am new and wanted to make a bot but when i watched the 2019 vids it wouldnt work because of the updates and stuff. soo I THANK YOU SO MUCH TO MAKE THIS 2020 VIDEO

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

    When i type node . or node sangaming(my bot name).js but nothing comes it comes a blank line and then again the directory of the folder help please

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

    Some one already said this but i copied this but this works, For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"

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

      It says "code: 'BitFieldInvalid'"

    • @lucasman-ep4bt
      @lucasman-ep4bt ปีที่แล้ว

      it says "code bitfieldinvalid"

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

    my bot aint coming online when i type both of the commands

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

      sameee

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

      make sure you save the thing when you are done setting it up or it won't work

    • @redrealite
      @redrealite 4 ปีที่แล้ว

      @@nick9115 I did and it still did not work

    • @nene7073
      @nene7073 4 ปีที่แล้ว

      @@redrealite same

    • @diortv9881
      @diortv9881 4 ปีที่แล้ว

      @@nick9115 how do we save lol

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

    3:01
    you can do this faster by clicking the location bar up and typing cmd in it

  • @andyhuang3266
    @andyhuang3266 3 ปีที่แล้ว

    I have a friend who is a hacker and is super good at programming, and this is the almost exact opposite that he taught me. Now, since COVID is here, he can't help me so this is my only option and I messed it up cuz I don't know how to code. I get it though, so I think this is a pretty good tutorial. Thanks CodeLyon!

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

    I SPENT 3 DAYS INTENSELY LEARNING PYTHON AND END UP HAVING TO USE JS

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

    Hey guys! I´m on the last step where I put my bot online, however, there is this error in my terminal:
    trow err;
    Error: Cannot find module 'node:events'
    Any idea how can I solve it? Thx!

  • @xenon.nonexx
    @xenon.nonexx 4 ปีที่แล้ว +85

    "'npm' is not recognized as an internal or external command,
    operable program or batch file." *bruh*
    Edit: Oh i jus t download node.js the next day :/

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

    If I try to start the bot this happens or comes this: throw new TypeError('CLIENT_MISSING_INTENTS');

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

    Good video! It helped me create my bot, but I'm still having problems getting it online.

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

      Here's a copy and paste from my list of solutions (so sorry that it's long and daunting)!
      Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
      TypeError: Discord.client is not a constructor
      at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
      at Module._compile (internal/modules/cjs/loader.js:1201:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
      at Module.load (internal/modules/cjs/loader.js:1050:32)
      at Function.Module._load (internal/modules/cjs/loader.js:938:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
      at internal/main/run_main_module.js:17:47
      Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
      Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
      Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
      const Discord = require(‘discord.js’);
      const client = new Discord.Client();
      client.once('ready',()=> {
      console.log('Discord bot is online!')
      });
      client.login('AuthToken');
      Make sure every capitalization is exactly the same!
      Hope this helped.

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

      @@twilightstar637 I’m so sorry I gave up on trying to create my discord bot, deleted all my files. Nobody wanted to help lol but I fixed the hosting problem.

    • @twilightstar637
      @twilightstar637 3 ปีที่แล้ว

      @@mopdatop1486 ah, im sorry for seeing your comment so late. I wished i decided to make a bot earlier. At least you had managed to fix it :)

    • @8578-m2b
      @8578-m2b 3 ปีที่แล้ว

      @@twilightstar637 Mine still doesn't work! Please add me in discord Kai Y#8578 to help me

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

    Other people: ez
    me: "discord.client" is not a constructor
    HeLp Me PleAsE

  • @Hope4NewDay1
    @Hope4NewDay1 2 ปีที่แล้ว

    Thanks Dunkey. Now I can let my bot run rampant in my colleague's server!

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

    Me: *types in* cd Desktop
    CMD: The system cannot find the path specified.
    Me: huh ok

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

      Mine did the same, so I just pasted it into the command prompt. Instead of it going straight to Desktop, I had to add OneDrive before desktop, then go to Discord Bots. I hope this helps you.

    • @zahinhossainkhandaker7774
      @zahinhossainkhandaker7774 4 ปีที่แล้ว

      @@MagixxzDC can you tell me how to do it

    • @kohenmckay5169
      @kohenmckay5169 4 ปีที่แล้ว

      @@zahinhossainkhandaker7774 I can help you
      send me a message on discord Kohen#1299

    • @rinrinx5975
      @rinrinx5975 4 ปีที่แล้ว

      @@kohenmckay5169 okay but I found out that on windows you can: shift right click then press "open powershell window here" and it'll open up

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

      @RinRinx Download node.js then restart pc :)

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

    Hi! I'm here watching your videos late. I'm loving them and you're so easy to follow! Quick question: What's are the chances of a series update/new video covering discord intents? Oh man, it just took me some troubleshooting time to figure those out! I'm sure I'll have more as I get further into the series.

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

      bro how did you fix it

    • @murdabands7468
      @murdabands7468 3 ปีที่แล้ว

      @@jdotsyro idk how to fix it either im trying to learn rn

    • @MysteryEnigmaShorts
      @MysteryEnigmaShorts 3 ปีที่แล้ว

      The cd Desktop thing doesnt work for me

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

      This should fix it:
      const { Client, Intents } = require("discord.js");
      const client = new Client({
      intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
      });

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

      @@TheJulianFilms thanks, now it is working

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

    FOR EVERYONE MAKING A BOT IN 2022!
    instead of doing const Discord and const Client like CodeLyon does it, you HAVE to do it like:
    const { Client, GatewayIntentBits } = require("discord.js");
    const client = new Client({
    intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    ]});
    otherwise you'll get several errors. welcome in advance!

    • @KindlTAS
      @KindlTAS 2 ปีที่แล้ว

      Thank you!

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

    i went through so much stress trying to find out why my bot wasn't coming online until i found out it was all because I typed in "required" instead of "require".