[JS] Create Your Own Discord Bot

  • 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.

V21Dangerous_

Super Member
Active Member
Console ID Poster
Sep 22, 2016
254
220
103
Los Angeles
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
  • @ Vuticopik:
    и как его скачать
  • @ QM|T_JinX:
    go on to your ps3 go to the contraler tap scroll up and there will be the updates of all the games you got installd
  • @ QM|T_JinX:
    installed
  • @ QM|T_JinX:
    the link i send in chat is the 1.12 apk update file
  • @ Vuticopik:
    "Файл, который вы пытаетесь загрузить, больше не существует" - вот что пишет при загрузке.
  • @ QM|T_JinX:
    yea its a old update you trying to install let me see if i can find you one
  • @ Vuticopik:
    good
  • @ Vuticopik:
    Отлично
  • @ QM|T_JinX:
    im not allowed to do this but i cant find something els so here is a link to all updates you have to make acc on there to do it
  • @ QM|T_JinX:
    o crap this dont work damn
  • @ Vuticopik:
    yes
  • @ Vuticopik:
    Я хотел бы спросить, возможно ли это для цифровой GTA 5 на PS3, потому что я узнал, что есть версии только для дисковой версии GTA.
  • @ QM|T_JinX:
    digital or disc dont matter mutch its about bles and blus versions
  • @ Vuticopik:
    ок, я сейчас посмотрю
  • @ QM|T_JinX:
    sorry to say i cant find any working download link you best change is to look on Youtube or google to see if you can find any working update links
  • @ Vuticopik:
    Я этим пользовался, скачивал патчи и обновления, не помогло и после одного видео наткнулся на ваш сайт
  • @ Vuticopik:
    if necessary I have BLES files
  • @ Vuticopik:
    Я имел в виду «Мне нужны файлы BLES»
  • @ Vuticopik:
    может быть, мы сможем поговорить
  • @ QM|T_JinX:
    if you have blus then donwload blus
    +1
  • @ QM|T_JinX:
    on google type in gta 5 ps3 all updates youwill see a link for all downloads
    +1
  • @ Vuticopik:
    I already found it, I'll check later
  • @ QM|T_JinX:
    goodluck
    +1
  • @ Vuticopik:
    goodbuy
  • @ QM|T_JinX:
    see ya
    @ QM|T_JinX: see ya