This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
y = 31_536_000, | |
d = 86_400, | |
h = 3_600, | |
m = 60, | |
SecondsConverter = function (input) { | |
let remainder | |
this.y = input / y | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
y = 31_536_000, | |
d = 86_400, | |
h = 3_600, | |
m = 60, | |
SecondsConverter = function (input) { | |
let remainder | |
this.y = input / y | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
y = 31_536_000, | |
d = 86_400, | |
h = 3_600, | |
m = 60, | |
SecondsConverter = function (input) { | |
let remainder | |
this.y = input / y | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
scramble = `scramble`, | |
scrambled = scramble + `d`, | |
admins = new Set() | |
.add(4333339) | |
.add(15619810), | |
rw = async () => { | |
const cmd = await command.execute(rw.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
loveEmotes = [ | |
`catboyKiss`, | |
`catKISS`, | |
`Kissaweeb`, | |
`KittyKiss`, | |
`BearHug`, | |
`catboyHuggies`, | |
`forsenHug`, | |
`HUGGIES`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
flags = [ | |
Uint8Array.of( | |
1, | |
2, | |
6, | |
11, | |
12, | |
13, | |
15, |
NewerOlder