feat: grant Discord role and post webhook on apotheosis

This commit is contained in:
2026-03-07 14:21:15 -08:00
committed by Naomi Carrigan
parent cb5ea9fee6
commit eef807343b
3 changed files with 27 additions and 2 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ import {
buildPostApotheosisState,
isEligibleForApotheosis,
} from "../services/apotheosis.js";
import { postMilestoneWebhook } from "../services/webhook.js";
import { grantApotheosisRole, postMilestoneWebhook } from "../services/webhook.js";
export const apotheosisRouter = new Hono<HonoEnv>();
@@ -62,6 +62,7 @@ apotheosisRouter.post("/", async (context) => {
},
});
void grantApotheosisRole(discordId);
void postMilestoneWebhook(discordId, "apotheosis", {
prestige: newState.prestige.count,
transcendence: newState.transcendence?.count ?? 0,