• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

[JS] Create Your Own Discord Bot

V21Dangerous_

Super Member
Active Member
Console ID Poster
Create Your Own Discord Bot Tutorial [JS]
In this tutorial i will be teaching you how to create your own Discord bot [JS].

Visual Studio (you can use NotePad++ if you want) and NodeJS


Alright once you got all requirements and you're now ready lets start.
Once you got in Discord Dev click on "My Apps" then "New Application".
ezgif-3-004383c351.png

Once you clicked on it now it will look like this.
ezgif-3-793be7c274.png

You can just name the bot others are optional. Now when you named the bot and clicked on "Create App" it will look like this.

ezgif-3-03b0d7e69a.png
Click on "Create a Bot User" then it will say "ADD A BOT TO THIS APP?" click on "Yes, do it!"
ezgif-3-efd4a7d54b.png

Now it's a bot you can make it public if you want to. Now make a new folder name it whatever you want. Now run CMD and type "cd (folder path).
Once you've done it type "npm install Discord.js" now it should download Discord.js and the folder "node_modules" will show up on your main folder that you've created, now you can close CMD.

Now go to Visual Studio/NotePad++ and create new file, now name it "Bot.js".
inside Bot.js file type
Code:
const Discord = require('discord.js');
const client = new Discord.Client();
Now jump 3 lines and type

Code:
client.login('');
Alright now you need to get your discord bot token (do not give it to some one) and copy and paste it inside "client.login('here');".

Now the bot is ready, you can invite him to your server. Copy bots client ID and go to google and type "**************/oauth2/authorize?client_id=YourBotIDHere&scope=bot" and click enter.

ezgif-3-6ec5a22923.png
Now this will pop out and it should have name of your bot and icon.
Now go ahead select your server and click "Authorize"

ezgif-3-b1a048702b.png
Alright now it should say "Authorized" and your bot is now in your server.
Now will have to get the bot online, type
Code:
client.on('ready', () => {
console.log('Bot is online!');

});

Now save the file and create a new file and name it "start_bot.bat".
Inside file type
Code:
node bot.js
PAUSE
Now go to your folder and double click on "start_bot.bat" wait few seconds and it should say "Bot is online!".

So go to Discord and now you can see your bot is online.
Now you can add commands to your bot in file "Bot.js" but make sure the bot is offline.

 
General chit-chat
Help Users
  • @ QM|T_JinX:
    thanks bro appreciate that nothing mutch thinking about after the movie playing some red dead 2 almost have it on platinum haha
  • @ QM|T_JinX:
    so you thinking about become staff again or no great to have you back on here hto
  • @ QM|T_JinX:
    tho
  • @ God:
    That’s the truth I see I come on here often here lately, sometimes I don’t chat! But yes I really want to help out and do everything I can bring the site back like it should be bro! Maybe we could work something out, I think I have the resources and community to help
  • @ QM|T_JinX:
    yea i have seen you on here just like unbound and some others but they didnt stick haha yea would be great to see this site grow again like you said like it should be
  • @ God:
    We will see we gotta talk to the boss man Younis
  • @ QM|T_JinX:
    for sure haha well lets hope right
  • @ QM|T_JinX:
    i still think if there was a jailbreak for ps4 this site would have been back for sure
  • @ God:
    That would be awesome I’m sure it will happen before long, technology now a days is crazy! If we can work out a deal and plans I’ll be spreading the word and doing a lot to make it better more attractive and helpful fourms tips giveaways and all
  • @ God:
    I’ve been messing and working with trying to make great CSS for the names. Like Staff Premium news writer etc..
  • @ QM|T_JinX:
    ok so hows that going /
  • @ God:
    It’s going good. So we will see what happens and if the site can come back like it was or better
  • @ QM|T_JinX:
    nice yea lets hope
  • @ QM|T_JinX:
    im going to play some red dead it was great to have spoken to you bro nice to see you back on here
  • @ QM|T_JinX:
    hope you have a great night bro
  • @ God:
    It was good talking with you as well, you have a great night! We will talk later bro
    +1
  • Chat Bot:
    QM|T_JinX has joined the room.
  • @ QM|T_JinX:
    have a great weekend everybody ill be back after the weekend
  • Chat Bot:
    OkBrruh is our newest member. Welcome!
  • Chat Bot:
    uncrtin is our newest member. Welcome!
  • Chat Bot:
    BigTechModz is our newest member. Welcome!
  • @ BigTechModz:
    Hey this is RexMods I don’t remember the login to my old account so I made a new one I am now known as BigTechModz
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    iDior2K is our newest member. Welcome!
      Chat Bot: iDior2K is our newest member. Welcome!
      Back
      Top