Skip to content

Instantly share code, notes, and snippets.

@brian6932
brian6932 / rl.js
Last active January 24, 2024 13:42
const
y = 31_536_000,
d = 86_400,
h = 3_600,
m = 60,
secondsConverter = function (input) {
let remainder
this.y = input / y | 0
const
scramble = `scramble`,
scrambled = scramble + `d`,
admins = new Set()
.add(4333339)
.add(15619810),
rw = async () => {
const cmd = await command.execute(rw.name)
const
execute = async function () {
const cmd = await command.execute(...arguments)
if (!cmd.success) {
let acc = ``
for (const argument of arguments)
acc += argument + ` `
throw Error(`$${acc}\u{2022} ${cmd.reason ?? cmd.reply}`)
}
return cmd.reply
const
execute = async function () {
const cmd = await command.execute(...arguments)
if (!cmd.success) {
let acc = ``
for (const argument of arguments)
acc += argument + ` `
throw Error(`$${acc}\u{2022} ${cmd.reason ?? cmd.reply}`)
}
return cmd.reply
const
loveEmotes = [
`catboyKiss`,
`catKISS`,
`Kissaweeb`,
`KittyKiss`,
`BearHug`,
`catboyHuggies`,
`forsenHug`,
`HUGGIES`,
const fishCount = ~~customData.get(`fish_count`)
let caught = customData.get(`fish`) ?? []
if (!Array.isArray(caught))
switch (typeof caught) {
case `string`:
const
fishes = Uint16Array.of(1, 15, 21, 22, 23, 34, 41, 1406, 1443),
emojis = []
for (let emoji of caught.trim())
@brian6932
brian6932 / fish.js
Last active October 21, 2023 18:55
const
fmt = num => {
if (num >= 11 && num <= 13)
return num += `th`
switch (num % 10) {
case 1:
return num += `st`
case 2:
return num += `nd`
case 3:
const
flags = [
Uint8Array.of(
1,
2,
6,
11,
12,
13,
15,
@brian6932
brian6932 / munkey.js
Last active October 21, 2023 18:31
Randomized flags with an attached monkey (inspired by Twitch user: @de_munkey)
const
flags = [
Uint8Array.of(
1,
2,
6,
11,
12,
13,
15,
@brian6932
brian6932 / fdm.js
Last active October 21, 2023 18:23
const
dank = [
`A FIFO Data Manager (FDM) collects the digital output data of these modules and sorts them by time. HEPI gets the data via an unidirectional High Bit Rate Serial Interface (HBR I/F) from each detector.`,
`A forex dealer member (FDM) is an entity that acts, or offers to act, as a counterparty to an off-exchange foreign currency transaction with a person who is not an eligible contract participant and the transaction is either: 1. a futures contract, an option on a futures contract or an option contract (except options traded on a securities exchange); or 2. offered or entered into, on a leveraged or margined basis, or financed by the offeror, counterparty or person acting in concert with the offeror or counterparty on a similar basis. To register as an FDM, visit the RFED/FDM registration page.`,
`A ping-based, non-distributed, adaptive failure detector (FDM) monitors the reimplementation of the PFS_E module. It functions similarly to the detector described: every Ai seconds, the detecto