Skip to content

Instantly share code, notes, and snippets.

@brian6932
brian6932 / rlq.js
Last active October 16, 2024 19:52
const
y = 31_536_000,
d = 86_400,
h = 3_600,
m = 60,
SecondsConverter = function (input) {
let remainder
this.y = input / y | 0
@brian6932
brian6932 / rm.js
Last active October 15, 2024 20:02
const
y = 31_536_000,
d = 86_400,
h = 3_600,
m = 60,
SecondsConverter = function (input) {
let remainder
this.y = input / y | 0
@brian6932
brian6932 / rl.js
Last active October 15, 2024 20:36
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,