Skip to content

Instantly share code, notes, and snippets.

View TheEssem's full-sized avatar
🔊
audio is cool shoutouts to audio

Essem TheEssem

🔊
audio is cool shoutouts to audio
View GitHub Profile
@TheEssem
TheEssem / migratedb.js
Created September 9, 2023 19:13
An ancient migration script from back when esmBot was switching to MongoDB, uploading here so it isn't lost forever
const mongoose = require("mongoose");
mongoose.connect("mongodb://localhost/esmBot");
module.exports = async (client) => {
const settings = client.settings;
const tags = client.tags;
const guildSchema = new mongoose.Schema({
id: String,
tags: Map,

Keybase proof

I hereby claim:

  • I am TheEssem on github.
  • I am essem (https://keybase.io/essem) on keybase.
  • I have a public key whose fingerprint is 5F58 CDCB 7689 1299 DCB7 1D58 A3F9 F021 2909 2FCA

To claim this, I am signing this object:

@TheEssem
TheEssem / rtpin.js
Created October 10, 2019 16:18 — forked from twilight-sparkle-irl/rtpin.js
pin retweets on twitter
$(document).ajaxComplete((e, x, o) => {
if (o.url == "https://api.twitter.com/1.1/statuses/retweet.json") {
tweet_id = JSON.parse(x.responseText)['id_str'];
auth_token = JSON.parse(document.querySelector('#init-data').value)['formAuthenticityToken'];
fetch("https://twitter.com/i/tweet/pin", {
body: `authenticity_token=${auth_token}&id=${tweet_id}`,
method: "POST",
headers: {
Accept: "application/json, text/javascript, */*; q=0.01",
"Cache-Control": "no-cache",
@TheEssem
TheEssem / pixelate.sh
Last active May 30, 2019 19:28
5-line bash script to demonstrate that this takes no effort
for file in ~/images/*
do
filename=$(basename -- "$file")
convert ~/images/$filename -scale 10% -scale 1000% ~/out/$filename
done
@TheEssem
TheEssem / MarkdownGistToWebpage.html
Created November 29, 2018 17:45
Make webpage from gist containing markdown
<!DOCTYPE html>
<html>
<head>
<title>Markdown Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.10.0/github-markdown.min.css">
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;

esmBot

esmServer Codacy Badge GitHub license

esmBot is an entertainment-focused Discord bot made using Discord.js with soundboard and image manipulation commands.

Usage

A command list can be found here.

Credits

Logo by The_STEEL_Show.

beavis.zen
bong
bud-frogs
bunny
cheese
cower
daemon
default
doge
dragon-and-cow
@TheEssem
TheEssem / esmBotCommands.md
Last active December 20, 2019 01:58
Command list for esmBot

THIS IS THE OLD ESMBOT COMMAND LIST. THE NEW ONE CAN BE FOUND HERE: https://projectlounge.pw/esmBot/help.html

esmBot Command List

by Essem#9261

[] means an argument is required, {} means an argument is optional.

Default prefix is &.

Tip: Use Ctrl+F to find the command you want!

Reason I'm gone is that my school found my private account and told my parents some of the stuff I posted there.
They forced me to close my twitter and discord, and told me not to upload on yt no more.
I regret making that private, as it was mostly because everyone else had one and it caused me to have to quit social media. My parents said I can rejoin when I turn 16 (I'm 13 now, will turn 14 in October)
As a result, I will return fully sometime in October 2020, under a new usernane, "MantleM"
Tell your friends that making a vent twitter isn't worth it, anybody can find it, and you don't need to post that shit online. (For the record, it was mostly sexual vents on the private that got me nae nae'd.)
Tell your friends, so they don't become me.
- zzcolby27, the former peanut god.
@TheEssem
TheEssem / TravisLog
Last active February 1, 2018 19:17
removed '/etc/apt/sources.list.d/basho_riak.list'
W: http://dl.hhvm.com/ubuntu/dists/trusty/InRelease: Signature by key 36AEF64D0207E7EEE352D4875A16E7281BE7A449 uses weak digest algorithm (SHA1)
W: GPG error: http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 Release: The following signatures were invalid: KEYEXPIRED 1507497109
W: The repository 'http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 Release' is not signed.
W: Failed to fetch http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/InRelease Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out
W: Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/trusty/InRelease Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/dists/trusty/InRelease Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/pollinate/ppa/ubuntu/dists/trusty/InRelease Unable to connect to ppa.launchpad.net:http:
W: Failed to fet