Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

General

Requires Linux with systemd, Node.js 22+, and a Cloudflare account. The Minecraft account must have Pit Supporter permission.

git clone https://github.com/12src/pit-events.git pit-events
cd pit-events
npm ci
npm run deploy

To collect once manually:

npm start

REST

Method Path Authentication Result
GET / None Events, 200 OK; 503 if none are stored
PUT / Authorization: Bearer <UPLOAD_KEY> 204 No Content; 400 on a bad body; 401 on a bad key; 413 over 256 KiB; 503 if no key is configured

The body is a JSON array of events.

Field Type Description
name string Event name, one of the values below
type string major or minor
time string Event start time, ISO 8601 UTC with minute precision
name type
2x Rewards minor
All bounty minor
Auction minor
Beast major
Blockhead major
Care Package minor
Dragon Egg minor
Giant Cake minor
KOTH minor
KOTL minor
Pizza major
Quick Maths minor
Raffle major
Rage Pit major
Robbery major
Spire major
Squads major
Team Deathmatch major

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages