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 / infinite-craft-random.user.js
Last active February 4, 2024 19:34
Infinite Craft Random Button
// ==UserScript==
// @name Infinite Craft Random Button
// @namespace http://snazzah.com/infinite-craft-random
// @version 2024-02-04
// @description Two random things...
// @author Snazzah
// @match https://neal.fun/infinite-craft/
// @icon https://www.google.com/s2/favicons?sz=64&domain=neal.fun
// @grant none
// @downloadURL https://snazzah.link/infinite-craft-random
@Snazzah
Snazzah / undefined
Last active July 25, 2021 15:42
⚡️ Recent Activity
🗣 Commented on #96 in skyra-project/discord-components
✔️ Reviewed #96 in skyra-project/discord-components
✔️ Reviewed #87 in Snazzah/slash-create
✔️ Reviewed #87 in Snazzah/slash-create
🎉 Merged PR #276 in dbots-pkg/dbots.js
@Snazzah
Snazzah / 📊 Weekly development breakdown
Last active October 29, 2020 00:18
📊 Weekly development breakdown
Vue.js 9 hrs 5 mins ████████▊░░░░░░░░░░░░ 42.0%
TypeScript 6 hrs 57 mins ██████▋░░░░░░░░░░░░░░ 32.1%
JavaScript 1 hr 54 mins █▊░░░░░░░░░░░░░░░░░░░ 8.8%
Stylus 1 hr 51 mins █▊░░░░░░░░░░░░░░░░░░░ 8.6%
JSON 1 hr 10 mins █▏░░░░░░░░░░░░░░░░░░░ 5.4%
@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",
}

So your bot's token is on github...

This type of stuff probably happen with when you start making your own bot, pushing it to GitHub (or GitLab) and you forget that your config.json is also in the repository, with the token...

It's pretty easy to find out who has their token on a repository just by encoding the bot's user ID in base64. If you push your token to GitHub, even Discord has a system that e-mails you saying that they found your token in GitHub and instantly resets it. Sometimes this may or may not happen, but if there is a token out there that closely emulates a token in a config.json then your bot will be deleted.

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 {