Automatically send a Discord message using a webhook when a player joins Hypixel.
Not exactly Pit related, but I might add Pit notifications at some point.
- node 14
- Cloudflare account
- Discord Application with the bot setting enabled
- Hypixel API key
- Run
npm i
. - Set the following secrets:
- apiKey - your Hypixel API key
- publicKey - your Discord application public key
- Modify
config.json.example
and rename it toconfig.json
and runnpm run setup
. - Run
npm run setup
. - Create a KV namespace and create keys
nameCache
,playerCache
,users
with the value{}
. - Modify
wrangler.toml.example
and rename it towrangler.toml
. - Run
wrangler publish
. - Copy your worker url and set it as a
Interactions Endpoint URL
. - Invite your bot to a server with the scope
applications.commands
.
- /subscriptions list
- /subscriptions add
- /subscriptions remove
- /updatename
- /webhook