Getting the Bot Online | Discord.js v12 tutorials

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome back to another video today so basically today we're going to get started on getting our bot online so the first thing you want to do is you want to come over to your red browser and you want to download node.js it's going to be in the bio of the video with the link and you just want to download recommended for most users and that will work and then after that you want to go to visual studio code a link will be in the down below and you want to download it i already have it downloaded so i'm set now let's get making the bot so you want to go to discord developer page you want to make a new application name it whatever you want i'm just going to name mine tutorialbot and then once you get it there you want to come down to the bot settings tab i want to make do ad bot you just press yes to it and this is the bot now copy your token and you're just gonna save it do not share it with anybody because this is what makes your bot go online if anybody has this they can get access to your bot now that you have this done you want to either come to your desktop or go into your file explorer and go to desktop but i'm just going to come to here want to make a new folder and name it whatever you want then that's done now you want to come down to your search bar you want to open up command prompt you want to do cd desktop and then cd whatever or you named your file now you're into your file what you want to do is run npm in it that will now you are into creating your bot name it your package name is whatever you named your folder if you want to change it go ahead just type it there press enter enter you can put a description if you want doesn't matter all these you can pass author you can put your name if you want i'm going to do it just show you enter enter and just press yes because that's all you have to do now you can close out of command prompt and you're all done with that now you want to open up visual studio code and then you want to press file open folder come down to your folder that you made select file or folder doesn't matter now that we have this this is our all of our information you can come down to the you want to press terminal and press new terminal now you want to come down here and just run mpm install discord dot js this is what will help will make our about run once you see it in here it's installed in package.json now whatever you named your main file mine is named index.js you want to come click your bot and you want to press new file and you want to name it the exact same name you named your main file once you got there you want to quickly come back down to here and you want to press new folder and name it config.json it was at this moment that he knew he up nope sorry immense i meant create a file that's name config.json now once you have that named you want to put brackets enter quotation marks and then you want to put token there colons wanna put parentheses right there then you should have your token copied already but that's what your token is now we're all done in here you can save it we do not need this anymore now we're going to come to our index anyone do cons discord equals require discord.js once you got that undo cons client equals new discord dot client i want to do capital c then put parentheses there if i'm naming them different please tell me because i would feel very stupid if i was naming them different and i want to press enter or to the fourth line you undo client dot on quotation parentheses one put what i've not parentheses not oh well you want to put those hit there you want to do ready comma then you want to do um want to do async then after the async you want to put some quotation marks i think yeah quotation parentheses sorry and then after the parentheses you want to do an arrow function then you want to put brackets in there now this does not matter but you will need to do you do not have to do it but it's useful you want to do console.log then quotation ah you just want to put these there i do not i feel very stupid right now but then you want to put quotation marks and you want to do whatever you want this is just to tell you that your bot is online i'm just going to say the bot is online then want to come down here you want to you want to do um client.login then quotation marks then up here underneath client you want to enter you want to do const config and you want to do equals and if i can spell it correctly first time all right you want to do equals and then you want to go back one day require then you need to go to the actual file so you want to do that then do dot slash and then you want to find your config.json just enter then you there you go now you want to do client under where you did client.login you want to do config you do not need the quotation marks anymore you just want to config dot token then this is all set you want to save it and then your bot should go online but before that happens you need to come down to oauth and your discord developer one do bot click bot you want to do administrator or whatever you want it to have permissions to do copy that in a new tab you want to paste it then i'll bring you to this and you want to invite it to your server that you made for instance i made another server and it's now in here now that it's in here it's offline want to come back here you can do clear i like to do it to keep it clean and you want to do no dots now if you did it correctly it should come online then there the bot bodies online now this is the end of the video i hope you guys enjoyed and please stay tuned for future videos and next video will be commands so i'll see you guys next time bye
Info
Channel: CodeViper
Views: 46
Rating: undefined out of 5
Keywords:
Id: WteP5T_vGxo
Channel Id: undefined
Length: 8min 26sec (506 seconds)
Published: Sun Jun 20 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.