showing results for - "how to make a discord bot discord js"
Daniela
28 Feb 2017
1//the first thing you need to do is make sure you have Node v16.6.0 or higher
2//you can chack it by running this command: node -v
3//install dicord.js first use this command: npm install discord.js
4//this must be done in the folder you want to make your bot
5//after this can you make a file call it whatever you want.
6//exable index.js
7const Discord = require('discord.js');
8const client = new Discord.Client({ intents: ['GUILDS', 'GUILD_MESSAGES']});
9
10client.on('ready', () => {
11    console.log(`Logged in as ${client.user.tag}`);
12})
13
14//message no longer works so use messageCreate
15client.on('messageCreate', msg => {
16    console.log(msg);
17    if(msg.content === "ping"){
18        msg.reply("pong!!!");
19    }
20})
21
22client.login("your-bot-token");
Louisa
28 Jun 2020
1//first you must install dicord.js by running the command: npm install discord.js
2//once u do that copy and paste this into your main file
3const Discord = require('discord.js');
4const client = new Discord.Client();
5
6client.on('ready', () =>{
7	client.user.setStatus('your status')
8	console.log('Connected!')
9})
10//rest of your code
11
12//always remember to never share your token with anyone
13client.login('your-token-here')
Claire
28 Sep 2016
1//Here is how to get your bot up and running!
2//1: Go to https://nodejs.org/ and download node.js.
3//2: Open your code editor
4//3: Make a new folder.
5//4: Name it DiscordBot - This can be whatever you want.
6//5: Make a text document and name it main.js
7//6: Put the text document in your folder.
8//7: Open your folder in your text editor.
9//8: Go to main.js
10//9: Press [Windows] + [R].
11//10: Type: "cmd" in the text box.
12//11: In the command prompt, type: "npm install discord.js"
13//12: Inside main.js, insert this script:
14
15const Discord = require('discord.js')
16const client = new Discord.Client()
17
18client.on('ready', () =>{
19	client.user.setStatus('Listening for: !help')
20	console.log('Bot is ready to be used!')
21}
22          
Margaux
31 Feb 2018
1const Discord = require('discord.js') //this says that its using discord.js and classifing it as a bot
2const bot = new Discord.Client();
3
4const token = 'put your bots token here!';
5//link to the dev portal to make your own discord bot here: https://discord.com/developers/applications
Simona
04 Oct 2017
1/* Okay So
21. You need to know the basics of Discord.js (learn on yt)
32. Go to dev portal (https://discord.com/developers/applications) Make a bot
4	Invite to your server
53. Start coding the bot in Discord.js
64. Host the bot somewhere like repl.it
75. You're done / Implement the bot
8*/
queries leading to this page
js bot discordnew js file discord bothow to make discord bot with jshow to make a command for discord bots on visual studio codediscord bot js basic codediscord js how to make a botshould i develop discord bot using discordjs or nodejsdiscord bot with jshow to make discord js botdiscord js discorddiscord bot javascript how to run codecreate discord bot with javascriptdiscord bot start code kine jsdiscord bot javascript librarydiscordjs basic botgetting started with building a discord bot using javascriptsimple discord javascript bot with commandshow to make your own discord jsdiscord create bot nodejsdiscord bot tutorial javascriptwrite javascript discord botdiscord javascript code blockmaking a discord bot with discord jscan you code discord bots in javascripta perfect discord bot code javascriptcomplete discord js botsetting up a discord bot jsnode js bot discordhow to code discord bot with jsdisccord bot jsmaking a discord bot jsdiscord bot full tutorial discord jsdiscord bot how to program javascriptdiscord bot example discordjsdicord jsis it possible to create a discord bot using javascriptdiscord bot coding jswebpack discord botjavascript discord bot tutorialcreating a discord bot javascriptdiscord javascript bot codingdiscord js how to create a bothow to make discord bot using discord jshow to make java script in discorddiscord js option guidiscord js how to make a 5c botdiscord bot coding js guidecode js discord botdiscord js createa user as a btohow to create a discord js bot v12make js discord botif message author voicechannel 3d member voicechannel discord jsdiscord learn javascriptcreate a js bothow to code a discord bot javascriptdiscord js toutoerialdiscord js bot aboutdiscord js documentationnode js prebuilt discord bothow to make a javascript console botdiscord new mmb bot codejavascript discord bottutorialhow to make discord bot with discord js in vcshow to run discord js v12how to make your discord bot with visual studio console application javascriptdiscord bot on message javascriptdiscor bot starter nodejsis writing a bot using discord js programming 3frun discord js bothow to run discord jsnodejs discordbot displayhow to set up a discord bot discord jsbasic discord bot javascriptdiscord js getting started guidejavascript discord bot loginbasic start for discord jsmake discord jsnode js start script for discord botdiscord bot 2f jshow to use discord bot node jshow to code a discord bot in javascripthow to make a javascript file in discord botcreate discord bot discordjsdiscord js basic botjavascript discord bot setuphow to set up a discord bot node jshow to make discord bot with javascript mediumbot js discordhow to make a discord bot using discord developer jsdiscord js make server codecoding a bot in discord jsusing javascript to make a discord bothow to create bot from discord jsmaking a discord bot using jsdiscord bot documentation javascripthow to run discord javascript bothow to learn discord jshow to make a discord bot with js and thmldiscord bot api javascriptdiscord js run code samplebot object discord jsdiscord js bot makejs bot discord tutorialnew js file discord botzhow to create a discord bot using javascripthow is a discord bot made with node js usedcode for discord js botdiscord js create botdiscord bot docs jsdefine bot discord jsdiscord js interactive help pagediscord bot java scriptdiscord js startdiscord js tyso botdiscord js guide botcreate a bot with discord jsnode js code to make discord botdiscord bot in javascriptis discord written in javascriptjavascript discord bot gethow to make a discord bot using node jsdsicord jshow to set up discord jshow to make a discord bot in node jsdiscord js created at bothow to use discord jsdiscordjs stop codediscordjs visual studio codesteps for discord js bothow to discord bot jsstart discord bot from visual studio codeho to make a discord js bothow to program discord bot javascripthow to code a discord bot jsdiscord bots using nodejs discord js tutorialhow to make a js discord botadd discord jsdiscord docsmake discord bot in jsdiscord js create a botdiscord js interactng with a js filehow to make discord bot node jswebpack with discord botdiscord js how to create an application botdiscord js code botdiscord js bot ijavascript discord bot commandsdiscord bots jsdiscord js is a botload code in js discordhow to show what script your editing on discorddiscord bot example jscan u use discord js in javascdiscord js create apidiscord creating a bot javascriptdiscord js discord bot tutorial 2fjs 2fbot jsdiscord bot discord js how to makehow to make a discord bot javascriptjs discord bot apimake discord bot listen for websitecode bot discord jscreate discord bot using discord jshow to code a bot in discord jsdiscord js simple websitediscord js tutorialscreer un bot discord en jsdiscord js setup a botdiscord js how togetting started with discord jshow to create a bot in discord using jshow to make a discord bot in javascripthow to make a discord js botdiscord bots javascriptdiscord js bot source code jshow to make status discord bot javascriptnodejs discord botwrite a bot discord jsdiscord jhow to turn a discord js bot oncoding a discord bot in javascriptcreate your own discord bot using jaavscriptstart discord js bot on another ipbuilding a discord bot jsjavascript discord bot programminghow to get discord js file to alwaus runcreate discord bot javascriptdiscord js 2f bothow to create a discord bot using nodehow to make bot with discord jsconnect to discord api nodejscreate basic discord js bot 3cdiscord 3e jsdiscord nodejs botdiscord bot node jsdiscord javascript bot documentationsingle file discord botmake a discord bot with jshow to write a discord bot in javascriptdiscord node js bothow to make a discord bot with jsjavascript discord botcode for discord bot in javascriptdiscord bot javascript exampleboton discord jshow to code a bot using discord jsdiscord bot script javahow to use a api in discord jsdiscord js guidediscord js node startdiscord js botdeveloping bots for discord javascriptdiscord js bot examplemake a discord bot with javascripthow to create a discord bot in node jsdiscord js message botdoes discord run node jshow to make simple bot discord javascriptdiscord js botdiscord node jsread something from website discord jshow to define bot discord jsjavascript to discord jsdiscord js make a discord botmake a discord bot in javascriptbuild bot discord with discord jshow to make a discord bot using jsdiscord js bot jsinclude html javascript into discord js bothow to make a discord bot node jsbot discord node jsdiscord documentation api node jsget discord boot running serverprogram a discord bot javascriptjs botmaking a discord bot using discord jsmake discord bot jsdiscord bot making js start the bot discord jshow to setup discord bot discord jshow to bring discord js bot onlinediscord js how to write ordiscord node js botbot discord jsdiscord js bot modeldiscord javascript for beginnersdiscord js bot call botget started discord jshow to code 27or 27 in discord jsdiscord bot javascript frameworkhow to make a new discord client with discord jsdiscord bot javascript commandsdiscord js run botdiscord bot discord js check when bot add to server disord jscan we make discord bot using jshow to code a discord bot with javascriptjavascript in discordhow to make a discord selfbot javascriptdiscord bot nodediscord bot code javascriptdiscord bot js full codediscord js quick startmake basic discord js botwhat is the command to start discord bot node somethingdiscord js codehow to make a discord bot with nodecreate discord bot with discord jshow to make it so when your discord bot turns on it runs a jsexecute pieces of code dsicord bottutorial build discord bot jsbasic discord js botcreate a function discord jsbot file check start up discord jsoverpermisions connect discord jshow to make discord bot with javascriptjavascript full discord bot codenode js discord bot create a constdiscord bot in jsdiscord js bot tutorialdiscord js bot codeshow to make a js botstart discord bot npmdiscord bot example nodejsdiscord documentation node jsdiscord js make bot appearhow to define the bot in discord jsdiscord js how to make a discord botdiscord bot work command javascriptcan you make a discord bot with javascriptmake discord bot javascriptcreate a discord js botdiscord js startup codehow to make a bot using a bot in discord jsmake a discord bot jshow to make a bot discord jsdiscord js ssetupdiscordjs bot discorddiscord js getting startedhow to start your discord bot discord jsdiscord bot with node jshow to make a discord bot jscreate node js discord botdisacord js ondiscord bot jshow to create a bot discord jswrite a bot with nodejscreate discord bot jshow to make it so when your discord bot turns on it runs a js filehow to make a bot in discord with jsget the biggest server the bot is on discord jsclient created discord jssimple discord js botnodejs set up discord json message discord jshow to make discord bot nojdecreate a discord bot discord jsjs discord bot examplediscord js execute codestarts with in discord jshow to make discord js starting filehow to make a discord bot using javascriptdiscord node j formdiscord bot about me discord jshow to make a discord bot in jshow to create bot in discord nodejscreate discord bot node jsdiscord listener bot javascriptdiscord js create discord bothow to make a discord bot discorjsbasic bot discord jscreating discord bot jsdiscord create bot jsdiscord node jsdiscord js new bothow to create a bot using discord jsdisscord js botbot file check discord jsdiscord js bot setupdiscord js run code when bot is addedhow to type javascript bots into consolediscord bots node js javascript discord bot documentationhow to write discord bot in jsdiscord js tutorialdiscord bot dashboard nodejssetuathor discord jshow to create discord bot discord jsjavascript discordhow to create a discord bot in jsdiscord js example codehow to make discord bots with jswriting a discord bot in jssimple discord bot jsdiscord bot by javascriptstandard javascript discord botcan you build discord bot using javascripthow to develop a discord bot with java javascriptcreating discord commands using node js visual studio codediscord bot js examplediscord bot example code jsdiscord botinfo jsrequisites to create a discord js botdiscord js starter codediscord kshow to make a discord bot js docsjavascript discord infomake a discord bot with node jsdiscord bot source discord js nodejs app using discord apidiscord bot using javascriptdiscord js guidemaking basic discord bot jsdiscord bot run javascripthow to write javascript code discordbasic discord bot code javascriptnodejs custom commands for discorddiscord bot connection test jsdiscord jshow to make a js bot discorddefine bot discord jsjavascript discord bot adding js filesdisocrd bot jshow to turn on a bothow to create a bot in discord jsjavascript discord bot source code getting started with discord bot with jsdiscord making bots in jsdiscord bot code jsdiscord inject javascriptcreating a discord bot with node jshow to make a discord bot in discord jshow to get in discord jsdiscordjs bot doesn 27t work ready event in vs code terminaldiscord js start codehow to create a discord bot with javascriptdiscord js bot codehow to code a js discord botcreate a javascript bot for discorddiscord js guide for making a discord botonline javascript discord bot javascript discord botdiscord js step to step processdiscord js bot 40bot login discord jsdefine the bot discord jsdiscord botsdiscord js starterdiscord js how to start a botmake discord bot 40 jsget started discord jshow to setup a discord bot in javascript javascript bot discorddiscord bot tutorial node jsdiscord js bot apishow to start discord js bothow to use falix nodes for discord bothow to get started with a discord js botmessage client on discord botcreate a discord bot node jshow to create discord bot with jscr c3 a9er un bot discord jsdiscord bot tutorial jscool discord bots jsdiscord bot commands javascripthow to make a command that runs code for the bot discord jsnew discord jsdiscord 2cjs getting serverhow to run a javascript bothow to start a discord js bot on a servermake a discord bot node jsresearch brief on how to make discord bots with javascriptdiscord bot coding js tutorialhow to setup discord js botdiscord bot npm starthow to make discord bot command jsdiscord bot with javascripthow to run your js code discord bot script a discord bot with node jshow to make a discord bot discordjshow to create js discord botdiscord js docsdiscord js make bot 40 an usercreate discord bot tutorial jshow to create a discord bot with jshow to activate bot in discord javascriptdiscord bot js setupmaking discord bots with javascriptdiscord js coding botdiscord bot js tutorialinteractive setup discord jsdiscord bot node js commandshow to code a with js discord botdiscord bot maker to javascriptdiscord bot node js tutorialbasic discord bot discord jsbot js discorddiscord bot hosting javascriptdiscord bot in nodejscheck when bot add to server discord jsdiscordjs bot example jsdiscord js basic codejs code in discordhow to make a discord bot discord jsdiscord js run code on bot closediscord js bot codediscord javascript tutorialnode js code discord botsimple discord bot code discord jscreate discord jsjavascript discorhow to make a discord bot using discord jsmake discord bot with js and htmldiscord with javascriptdiscord js how to make botdiscord js make a botplay song name discord bothow to create a bot with discord jshow to make a discord bot using node jsdiscord bot for javascriptmake discord bot wth discord 2cjshow to create a discord bot discord jsdiscord js continuehow to code or in discord jshow to create bot discord jshow to create a discord bot with discord jsdiscord bot javascript in console application visual studio 2019discord js bot oncejavascript discord bot helpercreating javascript discord botdiscord bot in node jsjs discord bot codediscord js to make botbuilding a discord bot with node jsjavascript commands for discord botacreate simple bot on with node jscreate js bot for discordhow to connect discord bot to javascriptdiscord bot javascript setupdiscord js discord bothow to make a discord bot with javascriptdiscord js bot how to makehow to create discord bot javascripthow to start create bot discord jshow to code a discord bot with node jshow to make a discord bot nodejavascript discord jsdiscord bot discord jsjavascript for discordcode a discord js botcreate a discord bot with jsjs discord botcreate discord bot nodejsnode js discord botrun javascript code with discord js botoptimizing code discord jshow to make discor bot discord jsdoiscord bot with jshow to make your bot message jsvisual studio code terminal to start discord botjava script discord bot programminghow to start discord bot npmcreate a discord js botcreate a discord bot javascriptdiscord js commandcode discord bot with javascripthow to make discord bot discordjsapi in discord bot javascriptbasic discord bot in jshow to set up a discord bot with jsdiscord js rundiscord js discordbotbasic discord js bot frameworkdiscord bots in jshow to create an embed code for a discord bot javascriptdiscord js guide botbot discord javascriptdiscoard js discord botdiscord bot how to create jshow to create a discord bot javascript on windowshow to start your discord js botdiscord bot button javascriptrun code using discord jsjavascript based discord botbilding an js discord botdiscord bot using nodejsbot token discord bot jshow to make discord bot jscreate javascript discordb othow to make discord bot discord jsdiscordjs botdiscord js bot guidewrite javascript code on discorddiscord bot programming javascriptbot code discord jsmake a discord bot javascript create a discord bot node jscode to amkke bot onlinehello discord command discord jshow to use discord bot with jsdiscord js docs bothow to make my bot start typing using discord jsstarting a discord js botdiscord js how to get the bot vcdiscord js client code 3fdiscord javascript botdiscord bot javascriptdiscord for javascriptdiscode js setupdiscord js bot example codebot discord js tutorialdiscord 2cjs orhow to set up a discord bot javascriptdiscord js commandrequire command in discord jsdiscord bot tutorial nodejshow to instal discord js on visual studiodiscord js startdiscord bot about page discord jscan you make discord bots with javascriptjavascript how to code discord botshow to discord jscreate discord js bot run discord bot in vs codegetting started with discord bots with jshow to start a javascript discord botbasic discord bot nodejshow to make a bot in discord jsbot says what you type discord jsget started with discord jsdiscord js bot with websitecreate bot discord jshow to create discord js botmake discord bot with jshow to make a javascript discord bothow to code my own discord bot using hjshow to run a discord bot node jsdiscord bot javascript in console application visual studiodiscord bot launch nodejsmaking discord bot jsget nodejs version from discord bothow to add api to discord jshow to build a discord bot with javascript and discord apihow to make a custom discord bot discord jsrun code using discord bot discord jsmaking a discord js botcompile discord js codediscord bot functions javascripthow to start a bot in discord jsdiscord js application codeprogramming a discord bot using node jsdiscord js starting a bothow can make bot in discord with js discord bot start codecode discord bot with discordjsdiscord js getting startediscrod bot coding jscheck if id is a bot discord jsdiscord bot codes jshow to run your discord bot code making a discor js botdiscord js bot tutorialdiscord js bot written tutorial advanceddiscord bot js codeopen source discord bots javascriptcreate discord bot in jssimple discord bot node js codedoes discord use javascriptmake a dicord bot with jsdiscord js botscan i pass a created discord message to discord client through expresshow to make a discord js botdiscord jsdefine bot in discord jsdiscord js reviewdiscord bot in nodediscord js server name commanddiscord js setupdiscord bot javascript codecoding a discord bot to take commands javascripthow to write javascript in discordcan 27t run script discord bot ptdiscord js bot to websitediscord js bot apidiscord js getting starteddiscord bot teminalhow create discord bot using discord jshow to write a bot with discord javascript apiinject javascript into discord bothow to make bot with discord js codelionhow to create a bot with dyscord jsjavascript discord bot codehow to do a discord bot discord jsbasic discord js botdiscord javascript bot tutorialdiscord start discordjsdiscord bot development javascriptcreate a discord bot jshow to make a discord jscan you use node js to make a discord botdiscord bot tutorials javascriptcan you do a discord bot with javascripthow to use api in discord jshow to make a discord bot nodejsdiscord javascripthow to run a discord bot discord jshow to create your own dependencies on discord jsnode js discord botjavascript discord bot docbuild a bot node jshow to get your bot online using sloppeydiscord bot jsbot thet clone channel in discord with visual studio codehow to make a bot with discord jshow to make a discord js bot websiteis discord made by javascriptbot discord jshow to make commands using node js discord bothow to make discord bot javascripthow to make a discord bot node jshow to make discod js server coonectsimple discord javascript botdsicord js botdiscord js website botdiscord js guide startingdiscord js api calldiscord js hello worldadding a bot discord jscan you create discord bot in node jshow to setup a discord bot jsdiscord jd guidediscord js bot runningjavascript discord bot docssimple bot discord jsdiscord js bot developmentbot discord javascript tutorialdiscord js run bot ons ervernpm packages that you need for making a discord botbot in a bot discord jsstart sh discord jsdiscord js v12 bot githubdiscord js v12 permium commandsbasic bot discord jsbot jshow to make a javascript discord bot using visual studiohow to use js with discordhow to make discord js botdiscord javascript jshow to get the first person who was mentioned node js bothow to make a simple discord js botcreate a bot discord with jsdiscord bot nodejsmaking a discord bot javascriptdiscord js make bot 40 usermaking simple discord bot with node jsdiscord js scripts using botvsc premade discord bothow to make a discord bot ai javascriptjavascript discord bot downloadbot on discord jsdiscord bot nodejs tutorialbot users jsdiscord js functionsetting up a discord boy jsdjs docs botmake a discord bot discord jsmake discord bot using jshow to make a discord bot discord jsconnect to discord api javascriptdiscord js create discord bot with nodejslearn discord jsdiscord jshow discord js workmaking a discord bot nodejsdiscord code jsbot discord 2f jsdiscord js run js codehow to create a discord bot javascriptclient variables discord jshow to get bots discord discord jscode a discord bot in javascripthow to set a bot as online discord jsdiscord bot api js messagediscord bot jshow to start discord js botdiscord bot js guidehow to turn off your discord bot visual studio codemake a js discord botdiscord js botsdiscord javascript websitewrite discord bot javascripthow to host javascript discord botmaking a discord bot with discordjscreate a js discord botdiscord 2cjs botsmake discord bot jdiscord welcome bot code javascriptdiscord js custom apihow to code discord bot with nodejsdiscord bot in discord jshow to make a discord bot in node jsjs discorddiscord js bot developmentnode discord botmake discordbot jshow to create a discord bot in nodejscreate new intance of bot for each bot discord jsfully discord js bot in index jsdiscord bot simple jscr c3 a9er un bot discord discord jsdiscord bot node jscommand discord jshow to make a discord bot discord js