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

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.

@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%
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 {
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));
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));

2. Send the /publishset command.

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

4. Click Yes.

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
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;