showing results for - "discord js checker"
Mika
18 Apr 2017
1/* If you are a mac user, do this in TERMINAL
2If you are a Window/Linux user, do this in COMMAND PROMPT
3
4npm install discord.js 
5
6DISCORD.JS IS NOW INSTALLED.
7I suggest looking on youtube for a tutorial on setting up a project, but here are the basics.
8
9
10THIS CODE SHOULD BE IN A "index.js" or "main.js" or whatever your main file is.*/
11
12const Discord = require('discord.js');
13const client - new Discord.Client();
14const /*you can have any prefix you want here*/ prefix = "?"
15
16client.on("ready", () => {
17	console.log('literally anything you want goes here')
18})
19
20//SUPER BASIC COMMAND: BASICALLY SHOWS THAT YOUR BOT CAN SPEAK
21client.on('message', message => {
22	if(message.content.startsWith(`${prefix}ping`)){
23    	message.channel.send('pong!');
24    }
25})
26
27
28//EXTREMELY IMPORTANT: GET YOUR TOKEN FROM THE DISCORD DEVELOPER PORTAL
29//NEVER EVER EVER EVER TELL/GIVE ANYONE YOUR TOKEN!
30client.login('your token here');
Aoife
10 Sep 2019
1const discord = require("discord.js")
2const fetch = require("node-fetch")
3const client = new discord.client()
4const keepAlive= require("./server")
5const BOT_TOKEN="ODc3ODAyNzY3NjIyNzM3OTYx.YR37iA.M2fc0_YXg2y5mWwpVMcJnw6bIl0" 
6function getQuote(){
7    return fetch("https://zenquotes.io/api/random")
8    .then (res => {
9        return res.json()
10    })
11    .then (res => {
12        return data[0]["q"]+"-"+ data[0]["a"]
13    })
14}
15
16const SayHello= ["hi","zd","hello","helou","gamarjoba","salami","hey"]
17
18const encouragments=[
19    "hello , there",
20    "ჰელოუ",
21    "გაუმარჯოს , როგორ ხარ აბა",
22    "hey , როგორ ხარ",
23    "სალამი",
24    "ზდ,ზდ"
25]
26
27
28client.on("ready"), () => {
29    console.log('შევედით როგორც ,  ${client.user.tag}')
30}
31
32client.on("message",msg => {
33    if (msg.author.bot) return
34
35if (SayHello.some(word => msg.content.includes(word))){
36    const encouragments = encouragments[Math.floor(Math.random() * encouragments.length)]
37    msg.reply(encouragments) 
38}
39
40
41
42
43client.on("message",msg => {
44    if (msg.author.bot) return
45
46    if(msg.content === "$$inspire"){
47        getQuote().then(quote =>
48             msg.channel.send(quote))
49    }
50})
51client.on("message", msg => {
52    if (msg.author.bot) return
53
54    if(msg.content === "$$help"){
55        new discord.embedMessage()
56        .setColor('red')
57        .addField('`$$kick`- გაგდება')
58            .setTitle("**List of Commands**\n") 
59            .addField(" - $$help", "დახმარება") 
60            .addField(" - $$info", "ინფორმაცია ჩემს შესახეხებ:grin:") 
61              .addField(' - $$Author' , 'ავტორი')
62        
63            .addField(" - $$ping", "ამოწმებს ბოტს") 
64            .addField(' - $$AFk ', 'გადით Afk-ზე')
65            .addField(" - $$cookie", "უგზავნის ნამცხვარს , პიროვნებას! :cookie: ") 
66            .addField(' - $$invites`','მოწვევები ')
67            .addField(" - $$8ball", "პასუხობს თქვენს კითხვებს ") 
68            .addField(" - $$inpire","შთაგონება")
69            .setFooter("გჭირდება დახმარება?, ჰა?") // sets the footer to "You need help, do you?"
70            .setFooter('ბოტი შექმნილია Error49 -ს მიერ')
71    
72    }
73     
74    
75})
76
77client.on("message", msg =>{
78  if(msg.content === "$$help Admin"){
79    new discord.embedMessage()
80    .setTitle("**ადმინის ბრძანებები**\n") 
81            .addField(" - say", "ბოტს ათქმევინეთ რაც გინდათ ($$say [მესიჯი])")
82            .addField(" - mute", "ადუმებს , პიროვნებას ($$mute @username [მიზეზი])")
83            .addField(" - $$unmute", "ახსნის დადუმებას პირვნებას , თუ ის დადუმებულია($$unmute @username)")
84            .addField(" - kick", "აგდებს პიროვნებას სერვერიდან($$kick @username [მიზეზი])") 
85            .setColor(0xFF0000) 
86            .setFooter("ოოო , ადმინი!") 
87  }
88})
89
90 keepAlive()  
91const mySecret = process.env['TOKEN']
92console.log(mySecret);
93client.login(mySecret)
94client.login(BOT_TOKEN);
95
queries leading to this page
download discord bot discord jsjs discordnpm init discorddefine bot discord jsdiscord bot code javascriptdiscord js onlinediscord js user documentationdiscord js check versiondiscord to jsdiscord jhow to install got for discord jsdiscord js install library npmjavascript discord clientdiscord downloadjavascript discordwhy apear 3c 40 21668807444872560660 3ediscord jsdiscord on readyjavascript bot messageofficial discord js discored serverdiscord server list node js discord jsdiscord bot discord jhsdiscord javascript appdownload discord jshow to download discord js 12 5 0do you have to download discord jscode a discord jsmodule discord jsdiscord js dowloadjs download discord jsnode js discord membernode modules discord bot12 5 1 discord jshow to make discord js npm packagejs api for discorddiscord js docsapi reference discord jsdiscord server jsjava script api discord botdiscod jsdiscord js ready event not c2 a8firedif logged in inside sharddisconnect eventbot user createdm discord jsdiscordjs comdiscord jsjavascript on discorddisord jsdiscord js docs commanddiscord bot discord jshow to install discord js nodediscord js interactng with a js filediscordjs discord clientdiscord js documentationclientcreate discord jsdiscord js versionnew discord client optionsdiscord js v14 new featuresduscord jsdiscord js docs apidiscordjs versioninstall discord jsnpm discord jsdiscord js cliient rundiscord js download filediscordjs example botdiscord js bot jsdiscord js client logindiscord js codediscord js guidecient once 28 29 discorddiscord js discord play integrationdiscord node modulesdiscord js apiclient discord jshow to install discord js in node jsdiscord js web interface guidediscord js gotdiscord js command page websitehow to setup a server discord jsinstall discordjsdiscord js bot infodiscord js npm initdiscord js downlodlib discord nodediscord js ready eventnot called if logged in inside sharddisconnect eventdiscord js websitenpm install discord js discord js c3 b9discord js orfand or discord jsdownload discord jshow do i the user discord jswhat 27s the latest version of discord js 3fdiscord js v12 documentationdiscord js npm install alldiscord bot node js versionsnpm discord js packagessdiscord jsinstall libary discord jsstarts with discord jsdownload discord js fileshow to see if discord js is already installed with npmdiscordjs module download listdiscord js installmember discord jsdiscord with javascriptdiscord js client rundiscordjs module downloaddiscord js developerdoscrd jsdiscord javascript 27npm i s discord jshow to reference discord jsndeojs discorddiscord js v13node js install discord jsdiscord js utildiscord js packagaediscord documentation jsdiscord js 12discord js constdiscord js 13discord bot development documentatio jsdiscord js bot versiondiscord js 21applydiscord js logodiscord nodejs clientdiscord js package urldiscord js bot librarydownload discord js 12dicord js help discordmongopath discord jsdiscord js auth rpmdiscord js developersdiscord js get client on readybot jsdiscord js install all packagesd js docsdiscord js installdiscord js bot codelatest discord js versiondiscord bot version command discrod jsdiscord js community discord serverdisocrd jsdiscord js 40outposjavascript discord jscheck discord js versiondiscord js v10discord js serverddiscord js serverdiscored jsinstall discord js v12discode jsdiscord js orlrequire got discord jsdiscord js indexhow to make a npm package using discord jsdiscord js discord servernode run discordjsnpm i discord jsdiscord js required node versiondiscord api nodejsget nodejs version with discord jsdiscord js explanationnpm import discorddiscordj jsdisacord js ondiscord js nodediscord js replydiscord js dodiscord js v13discord js guidehow to connect discord js to webdiscord js nodejsdiscord js orgdiscord for jsdiscord jsnpm discord js folder downloaddiscord js12 documentationnpm update discord jsisntall discord jsdiscrod jsdiscord js discorddownload discord file npmnode install discord jsget node version discord jsinstall discord js npmdiscord js code makernode js discord bot documentationdiscord js importdiscord js nooooobdicord jsmessage reply discord jsdiscord client ondiscord js how to downloadnpm discord jsconst discord 3d require 28 27discord js 27 29 3bdiscord bot ready how to get discord js using npmbot code discordcdiscord jsdiscord js botdiscordjs dev builddiscord min js downloaddiscord js documentsdiscord js basic web serverdownload discordcan discord js docsdiscodjs open channeldiscord bot js documentationclient on js discordhow to install discord jsdiscord nodejsdiscord vs discord js npmdiscord js orgdiscord js discord serverdiscord js doc v11discord js v11 docsdiscord js for ofdiscord ksbot discord js discord js ordiscord js gtiktek discord jsnpm discord js installdiscord js versionidscord js docs discord jsdiscord js event docsinnstall discord jsdiscord js bot is readygetting started discord jsnpm install discord js last versionguide discord jsgdiscord jshow to insttall discord jsdiscord api library jsnpm install discord js versiondisocrd js docdiscord js bot libdiscord js user docshow to download discord jsdiscord js wsdiscord js npm startdiscord js downloaddiscord bot api js documentationdiscord js libraryinstalling discordjs using npmidiscord js mpndiscord js downloadclient on discord jsbot jsbot cide for discord jsconst discord 3d new discord clientdiscord js referencenpm i s discord jsdiscord js simple websitecool discord js apisdiscord js docsdiscord client optionsdiscord js cdndiscord js docs vs 11discord js clientdiscord js library downloaddiscord js checker 7buser 7d discord jshow to install discordjsdiscord js v12 documentationget bot version discord jscode bot discord v12discord ksdiscord js node downloaddiscord js latest versiondiscord js help discordlana link for discord jshow to make a discord js npm packagehow to attach the discord js docs to a bothow to code discord jshow to download discordjs v12discord js dashcaraftdiscord js documentshttps discord js examplehow to install discord jshow to download discord jsdiscord node jsdisocrd jsconst discord 3d require 28 27discord js 27 29discordjs apidiscord js help jsdiscordjs all modules downloaddiscord jsgdiscord jsd js nodejsdiscordjs examplejavascript in discordcurrent discord node versioninstall npm discord bot jsnew discord client 28 29 3b jsconst discord 3d require 28 27discord js 27 29 3b const client 3d new discord client 3bdiscordjs wikidiscor js downloadnodejs api discord bot discord js discordinstall discord jsapi version discord jsnpm init discordconnect to discord api javascriptdiscord js with keyvdiscord js latest versiondiscord js sclientcreate by bot discord jsdiscord js guidediscord jsinstall module discord 2cjsdiscord node jsnpm install discord jsdiscord js bostdiscord bot discordjsdiscord js donwloaddiscord js pre 3d 3c 10discord node apidiscord js who isnpm isntall discordjshow to get a module version discord jsnom discord jsdiscord js checker