Skip to content

Instantly share code, notes, and snippets.

View joe-schorn's full-sized avatar

Joe Schorn joe-schorn

  • Kittyhawk Digital
View GitHub Profile
@joe-schorn
joe-schorn / index.js
Created November 30, 2016 17:54
Discord webhook with queue
const request = require("request");
const EventEmitter = require("events").EventEmitter;
const util = require("util");
const endpoint = "https://discordapp.com/api/";
function DiscordWebhook(url) {
this.url = url;
this.onReady = false;
var queue = [];