Skip to content

Instantly share code, notes, and snippets.

View olvrb's full-sized avatar

Oliver Boudet olvrb

  • Luleå
View GitHub Profile

Keybase proof

I hereby claim:

  • I am olvrb on github.
  • I am olvrb (https://keybase.io/olvrb) on keybase.
  • I have a public key ASD7QdExHMuN1ug414ApyMMQ8-bmv9_6xDBj0DymbZR6EQo

To claim this, I am signing this object:

@olvrb
olvrb / app.js
Created November 1, 2017 12:59
send random color discord js
message.channel.send({
embed: {
color: Math.floor(Math.random() * 16777214) + 1, //random color between one and 16777214 (dec)
description: `Random color generated: ${randColor}\n${randColor} is equal to 0x${randColor.toString(16).toUpperCase()}`
}
});
@olvrb
olvrb / app.js
Created August 18, 2017 08:26
Simple, complete example of a bot in Discord.js
// 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");