Skip to content

Instantly share code, notes, and snippets.

View PartMan7's full-sized avatar
🥔

PartMan PartMan7

🥔
View GitHub Profile
@PartMan7
PartMan7 / catppuccinMochaMapper.ts
Created September 8, 2025 07:39
Catppuccin Mocha Mapper
/**
* Maps Catppuccin Mocha hex values for stuff like crust/mantle/base to blacker colours while preserving luminosity.
* Liberally referred to Culori's colour adapters as a reference; check them out!
**/
// region Types
export type Hex = string & { __hex: true };
/**
* rgba() colorspace.

o/

Yay for finally starting this out. As the name might (or might not) suggest, this Gist is intended at offering a quick rundown on the more important commands that're used by Bots.

Basic Commands:

The ones in /commands are already pretty-well covered in /help, so I'll skip these.

Data Commands:

/cmd userdetails (user): Returns a |queryresponse|userdetails|JSON response, which contains the public data about a certain user. /cmd roominfo (room): Returns a |queryresponse|roominfo|JSON response, which contains the public data about a certain room. For modjoined rooms, returns a {"id":roomid,"error":"not found or access denied"} in the JSON. The room may also be in the form of a tier (gen82v2doubles, for example), in which case the return value will be the list of all ongoing public games in that tier.