Skip to content

Instantly share code, notes, and snippets.

View Jinzulen's full-sized avatar
Pondering.

Khalil G. Jinzulen

Pondering.
View GitHub Profile
@Jinzulen
Jinzulen / steal_emotes.js
Created March 9, 2020 06:03
DJS solution to download all custom emotes available to you.
const OS = require("os");
const FS = require("fs");
const Request = require("request");
const Discord = require("discord.js");
const Client = new Discord.Client();
Client.on("ready", () => {
console.log(`${Client.user.username}#${Client.user.discriminator} has logged in.\n`);
console.log(`- Custom emotes found: ${Client.emojis.cache.size}`);
@Jinzulen
Jinzulen / id_nickname.coffee
Created September 29, 2019 23:36
Second half of an OAuth implementation that lets a discord bot identify a user on an external service and change their nicknames upon joining the server.
MySQL = require "mysql"
Discord = require "discord.js"
# This database has to be the same one you're using for your website.
Connection = MySQL.createConnection { host: "localhost", user: "something", password: "something", database: "database" }
Client = new Discord.Client
Client.on "ready", () ->
console.log "Client logged on as " + Client.user.username + "#" + Client.user.discriminator

Keybase proof

I hereby claim:

  • I am jinzulen on github.
  • I am jinzulen (https://keybase.io/jinzulen) on keybase.
  • I have a public key ASDNzQU4tcmzUEfxxt4hdvXczHtk2s4PYXa8psLdq3lsKAo

To claim this, I am signing this object: