Skip to content

Instantly share code, notes, and snippets.

@rainbownotfound
rainbownotfound / app.js
Created January 23, 2018 00:26
Building Your First Discord.js Bot
const Discord = require('discord.js'); // Require discord.js for your bot to communicate with the Discord API
const config = require('./config.json'); // Our config file
const client = new Discord.Client();
client.on('ready', () => { // When bot is online and ready
console.log(`I'm ready!`);
});
client.on("message", message => { // When the bot spots a message
// --------------===== Variables =====-------------- //