This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParameters": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); // remember to install discord.js via: npm install discord.js | |
const bot = new Discord.Client(); | |
const token = "TOKEN" // to get your token go here: https://discordapp.com/developers/applications/me/ | |
// don't share the token with anyone. | |
// Bot connexion | |
bot.on("ready", function () { | |
console.log("The bot is online!"); |