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
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
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
// Load up the discord.js library | |
const Discord = require("discord.js"); | |
// This is your client. Some people call it `bot`, some people call it `self`, | |
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`, | |
// this is what we're refering to. Your client. | |
const client = new Discord.Client(); | |
// Here we load the config.json file that contains our token and our prefix values. | |
const config = require("./config.json"); |