Skip to content

Instantly share code, notes, and snippets.

View Snazzah's full-sized avatar
🪐
as seen on mars

Snazzah Snazzah

🪐
as seen on mars
View GitHub Profile
@Snazzah
Snazzah / oldcode.rb
Created April 15, 2016 01:48
Botboy's old code.
#Old code for BotBoy.
#Have fun getting your bot banned from all servers.
require 'discordrb'
bot = Discordrb::Commands::CommandBot.new(email: '',password: '',prefix: '^')
module PMJoin
extend Discordrb::EventContainer
// Pix2Pix Module, Snazzah
let request = require("superagent");
let fs = require("fs");
let path = require("path");
let URLs = {
edges2shoes: "https://pix2pix.affinelayer.com/edges2shoes_AtoB",
edges2handbags: "https://pix2pix.affinelayer.com/edges2handbags_AtoB",
facades: "https://pix2pix.affinelayer.com/facades_BtoA",
edges2cats: "https://pix2pix.affinelayer.com/edges2cats_AtoB",
}

Keybase proof

I hereby claim:

  • I am Snazzah on github.
  • I am snazzah (https://keybase.io/snazzah) on keybase.
  • I have a public key whose fingerprint is 719B F2BD 4FD3 6D62 530A 78B8 992D 1E03 1269 1AC4

To claim this, I am signing this object:

try{
let emojiRequest = new XMLHttpRequest();
emojiRequest.open( "GET", "https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json", false );
emojiRequest.send( null );
let emojiData = JSON.parse(emojiRequest.responseText) || [];
}catch(e){
console.warn('%c[Emoji] %cWas not able to get emoji data', 'color:purple; font-weight: bold;', 'color:#000;')
}
var parseEmojiShortcode = (content) => {
body {
background: #222;
}
.ui.header, body {
background: #222;
color: rgba(255,255,255,.87);
}
.ui.card, .ui.cards>.card {
box-shadow: 0 1px 3px 0 #363636, 0 0 0 1px #363636;
const emojiRegex = /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uD

2. Send the /publishset command.

3. Send a sticker of the sticker set you want to use.

4. Click Yes.

class ColoredTyping extends DI.Structures.Plugin {
constructor() {
super({
name: "ColoredTyping",
version: "0.2.1",
description: 'Make the text color of the "typing..." text same as role color',
author: "Snazzah"
});
this.data = {};
window.DI.client.on('typingStart', this.onTyping.bind(this));
class BetterNSFW extends DI.Structures.Plugin {
constructor() {
super({
name: "BetterNSFW",
version: "1.0.0",
description: 'Changes the nsfw- prefix on channels into an 18+ icon',
author: "Snazzah, digitalAlchemist",
color: 'e74c3c'
}, `.nsfw-channel-tag{font-size:0.7em;float:right;position:relative;color:#e74c3c;background-color:#56393f;border-radius:5px;padding:3px;font-weight:700;}`);
this.mo = new MutationObserver(this.check.bind(this));
DI.Helpers.insertScriptURL(`https://code.jquery.com/jquery.min.js`).then(() => {
var isQuote = false,
quoting = false,
elem,
chanName,
serverName,
atServerName,
stringLocal;
class Citador extends DI.Structures.Plugin {