A simple and easy discord bot template ready to use!
Made with ❤ by eumermondio
Download visual studio code here
First of all you must fork this repo. Later you will need it to upload your own bot to github. Fork it by clicking on fork button
Once forked this repo go to your desktop and create a folder. Name doesn't matter by the way
Then you'll need to open that folder with visual studio code. Open visual studio code and do this shortcut CTRL + K + O
. Once you have done this look for your folder and select it.
Ok you have completed the 50 of this guide so... Congrats! Go on!
To initialize git on your folder you must go to the left toolbar of visual studio code and click the source control button. It looks like a Y
. Once done this click the initialize button and wait. If you see a commit button you are going ok.
Now click the source control button again and click the ...
button. It appears on top. Now click on clone and paste the URL of the forked repo. It's on your github profile. Once done this you should look the repo files.
Open a terminal on visual studio code by clicking on terminal button and run these commands.
npm init
npm install discord.js
You should see new files like package.json
.
Ok, you've set up the files. Now you need a discord app active to complete your bot.
Once you done it create a bot and reset his token. Copy the token.
Now you have the bot's token in your clipboard. Go to visual studio code and open this folder index.js
. Go to bottom and you'll see something like this
// LogIn
client.login("BOT'S TOKEN HERE");
Paste your token there
Congratulations dude! This is the final step so keep calm. Now open a terminal and run this command.
node .
You should see this in console.
Bot Online
Logged as: BOT'S NAME
If you see that your bot is now running!!!
MIT