mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 09:06:10 +00:00
NSFW reports posted via the website-side GraphQL mutation aren't triggering reviews when moderators react in Discord, but the bot-command path (!review) works. Adds structured logging to disambiguate the two paths and pinpoint which step in the path-B (graphql) flow is failing: - DiscordEventHandler: client lifecycle events (ready, error, disconnect, reconnecting, shardError), login failures, top-level messageReactionAdd listener so we can see whether the Next.js-side gateway receives reactions at all - DiscordEventHandler.handle: entry log + try/catch so swallowed errors surface (notify is fire-and-forget) - requestReview: entry, resolved tweetStatus, explicit "skipping already-reviewed" log - postSkin: new optional source param so logs can distinguish the bot command from the graphql mutation; logs at entry, after send, on bot reaction success/failure, awaiting reactions, awaitReactions resolved - loggingFilter wrapping the awaitReactions filter to log every observed reaction with pass/fail and any filter errors |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| __tests__ | ||
| graphql | ||
| auth.ts | ||
| DiscordEventHandler.ts | ||
| processUserUploads.ts | ||
| types.ts | ||