Menu
header photo

The Journey of Hammond 214

thumbvoice4's blog

blog post

Create a Discord Bot With Node.js</h1>
hey what is going on men my call is. anson and at present i'll be coaching. you guys how to create an easy. discord bot with out json javascript. now before i even get started i want to. thank brad traversi for thiis amazing. opportunity to be on his channel to. train his visitors. you men on the way to create a discord bot. his movies have helped many programmers. including myself and ii can't thank him. enough for all the paintings he's carried out. for the programming community with all. that being stated i also do have my own. youtube channel wherein i put up on a. regular basis i publish videos ranging from. server part progress to front end. progress my most recent. videos were react as well as . developing complete stack applications. so if that hobbies any of you guys the. hyperlink would be in the description. and yeah so that's essentially it let's.
Pass forward and start on developing. our task so i am assuming that every one of. you men already have. the prerequisite know-how of javascript. if you men do not i would extremely. recommend you first learn javascript. earlier than trying. this academic because it's going to be. very tough to keep up with it second i am. assuming that you men even have. nodejs set up if you do not you could pass. over to nodejs.org. and you'll install node.js discord bots. are server sided functions. so we'd like to make sure we're utilizing a. server sided environment to really run. the application. ok yet assuming you guys have. javascript expertise in addition to nodejs. established. what we'll do first is we're. actually going to go forward and allow me. open up my. home windows terminal and i am in my documents. folder right this moment and ii'm going to create.
a brand new listing it is easy to create. this with the dossier explorer if you do not. desire to use. the windows terminal i'm going to variety. mikter and ii'm going to name this. discord.js. tutorial bots okay so that's discord.js. hyphen educational hyphen bot. and you will see that that it changed into just created. correctly and ii'm going to move ahead. and just cd. into discord.js academic bot so it's. going to sincerely difference the directory. so we are presently within. documents folder and we have just created. a new folder called discord.js. tutorialbot yet i desire to sincerely. change the present listing. to that new folder i simply created so i'm. going to kind cd which stands for change. listing. so enter you can see that now our. current listing we are within. discord.js tutorial bot which is inside. the documents folder. now i'll open up my text editor.
Now you can use textual content editor you. want i will be utilizing visual studio. code. so i'm simply going to sort code dot you. can actually just open up this folder. manually through going to file. open folder and searching your dossier. explorer in my case i'd visit the. files folder after which seek for the. discord.js tutorialbot folder after which i. would open it up okay so obviously you. can see correct over here we've. a blank uh vicinity over here we don't have any. files. so let's move forward and connect that so i am. going to head forward and just type npm. init hyphen y this is going to create a. patch.json file which is going to be. very important. due to the fact as an instance if we wish to deploy. our bot we'll be sure we've. all of our dependencies listed within. this patch.json dossier. and we additionally favor to make certain we've.
Our scripts as well the next aspect we. want to do is we wish to install. discord.js this can be a thirdparty module. it is not portion of the node.js core. library so we need to install it ok. this library is we will be using. to engage with the discord api to. create our discord bot. now i will point out correct off the bat. that this library is. very powerful and it is usually a. little bit elaborate reckoning on your. know-how o

Go Back

Comment

Blog Search

Comments

There are currently no blog comments.