Skip to content

Instantly share code, notes, and snippets.

View funnbot's full-sized avatar

Dillon Bayless funnbot

  • San Francisco Bay Area
  • 11:26 (UTC -07:00)
View GitHub Profile
@funnbot
funnbot / colorme.js
Created December 27, 2016 02:57
This is my colorme command for my bot MopBot.
const misc = require('../../Functions/misc');
exports.exec = (message, bot, suffix, param) => {
let colors = {
red: "#ff0000",
darkred: "#730000",
pink: "#FC10EC",
orange: "#ff7300",
yellow: "#ffff00",
blue: "#0000ff",
@funnbot
funnbot / cah.js
Last active February 19, 2017 05:24
Cards Against Humanity for MopBot
let cah = {}
exports.exec = (message, bot, suffix, param) => {
if (param[1] === "end") {
let staffRole = config.getStaffRole(message.guild.id);
if (!message.guild.roles.exists('name', staffRole) || !message.author.id === message.guild.ownerID) return sendWarn(message, `Your server does not have the designated Staff Role \`${staffRole}\`.\nIt is required for some of my commands`);
if (!message.member.roles.exists('name', staffRole) || !message.author.id === message.guild.ownerID) return sendWarn(message, `To end a cards against humanity game you need the role \`${staffRole}\`.`);
delete cah[message.guild.id];
sendSucc(message, "Cards Against Humanity Game Ended.")

Keybase proof

I hereby claim:

  • I am dillman33 on github.
  • I am funnbot (https://keybase.io/funnbot) on keybase.
  • I have a public key whose fingerprint is 25C2 DBF9 6853 1525 2148 5474 7BEC 473E C990 D05C

To claim this, I am signing this object:

@funnbot
funnbot / donotpresstheredbutton.js
Created February 20, 2017 22:01
The Entire Text for the Do Not Press The Red Button game in an easy to use array and new lines in correct places.
[
"DO NOT PRESS",
"*Ahem*\nDO NOT PRESS",
"... you pressed it again.\nOkay punk, press it again.",
"Yeah, that's it.\nCome on, one more time.",
"Again.",
"Do it.",
"Okay, now you've had your fill.\nStop clicking.",
"You see, this is why\nwe can't be friends.",
"You're just too selfish.",
if (process.version.startsWith("v6")) throw new Error("This Bot requires Node 7v+ because of async/await")
const Discord = require("discord.js")
const express = require("express")
const app = express()
const superagent = require("superagent")
//Config
let INVITE = process.env.INVITE || "", //An Infinite Invite to your discord server.
GUILD = process.env.GUILD || "", //The ID of the Guild for this invite ^
@funnbot
funnbot / acbot.js
Last active August 25, 2017 04:03
auto correct self bot
/*
Create auth.js in same dir with module.exports = "token"
*/
const spc = require('spellchecker');
const {
Client
} = require("discord.js");
const client = new Client({
messageCacheMaxSize: 10,
@funnbot
funnbot / discord_eval_evaler.js
Last active September 12, 2020 04:00
Probably not working anymore.
(function implantEval(window, d) {
const localStorage = d.body.appendChild(d.createElement("iframe")).contentWindow.localStorage;
const regex = new RegExp(JSON.parse(localStorage.token).split(".").join("|"), "g");
window.addEventListener("keydown", handleDown);
console.log("Evaler Loaded")
function handleDown(event) {
if (!event.getModifierState("Alt")) return;
@funnbot
funnbot / Piano.js
Created February 15, 2018 16:58
I wrote a language for music
const tone = require("tonegenerator")
const { notes, shapes } = require("./constants.js");
module.exports = function (text) {
const input = new InputStream(text);
const tokenizer = new Tokenizer(input);
const parser = new Parse(tokenizer);
const tracks = CreateTracks(parser);
const track = AllignTracks(tracks);
return track;
@funnbot
funnbot / Piano.js
Last active February 16, 2018 00:43
Heres the piano thing i made, it turns text to some thing, returns PCM buffer so figure out how to play it yourself.
const tone = require("tonegenerator")
const notes = {
"c": [16.35, 32.70, 65.41, 130.81, 261.63, 523.25, 1046.50, 2093.00],
"c#": [17.32, 34.65, 69.30, 138.59, 277.18, 554.37, 1108.73, 2217.46],
"d": [18.35, 36.71, 73.42, 146.83, 293.66, 587.33, 1174.66, 2349.32],
"d#": [19.45, 38.89, 77.78, 155.56, 311.13, 622.25, 1244.51, 2489.02],
"e": [20.60, 41.20, 82.41, 164.81, 329.63, 659.26, 1318.51, 2637.02],
"e#": [21.83, 43.65, 87.31, 174.61, 349.23, 698.46, 1396.91, 2793.83],
"f": [21.83, 43.65, 87.31, 174.61, 349.23, 698.46, 1396.91, 2793.83],
@funnbot
funnbot / emojikeyboard.json
Last active June 19, 2020 20:01
Some letters but they are blobby.
{ "a": "🇦", "b": "🇧", "c": "🇨", "d": "🇩", "e": "🇪", "f": "🇫", "g": "🇬", "h": "🇭", "i": "🇮", "j": "🇯", "k": "🇰", "l": "🇱", "m": "🇲", "n": "🇳", "o": "🇴", "p": "🇵", "q": "🇶", "r": "🇷", "s": "🇸", "t": "🇹", "u": "🇺", "v": "🇻", "w": "🇼", "x": "🇽", "y": "🇾", "z": "🇿", "0": "0⃣", "1": "1⃣", "2": "2⃣", "3": "3⃣", "4": "4⃣", "5": "5⃣", "6": "6⃣", "7": "7⃣", "8": "8⃣", "9": "9⃣", "<": "◀", ">": "▶", "!": "❗", "?": "❓", "^": "🔼", "+": "➕", "-": "➖", "÷": "➗", ".": "🔘", "$": "💲", "#": "#️⃣", "*": "*️⃣" };