mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +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__ | ||
| api | ||
| app | ||
| data | ||
| discord-bot | ||
| docs | ||
| fixtures | ||
| legacy-client/src | ||
| migrations | ||
| public | ||
| scripts | ||
| seeds | ||
| services | ||
| tasks | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierignore | ||
| addSkin.ts | ||
| algolia.ts | ||
| cli.ts | ||
| CloudFlare.ts | ||
| config.ts | ||
| data.json | ||
| db.ts | ||
| DiscordWinstonTransport.js | ||
| jest-setup.js | ||
| knexfile.ts | ||
| logger.js | ||
| museumOrder.sql | ||
| next-env.d.ts | ||
| next.config.js | ||
| package.json | ||
| preview.png | ||
| preview_small.png | ||
| README.md | ||
| regionParser.ts | ||
| s3.js | ||
| Search filter ideas | ||
| shooter.js | ||
| skinHash.ts | ||
| transparency.ts | ||
| tsconfig.json | ||
| twitter.ts | ||
| types.ts | ||
| utils.ts | ||
Winamp Skin Database
This package contains code for managing the collection of Winamp skins which are used for various projects related to Webamp:
- @winampSkins Twitter Bot
- The Discord bot used in the Webamp Discord
Discord Bot
The discord bot allows us to:
- Review skins for use by the Twitter bot
- Upload new skins to the database
- Get a screenshot of a given skin
- Get a link/screenshot of a skin based on its hash
Server
This package also includes a GraphQL interface for exploring skins. It is not currently used by anything, but can be useful for inspecting the data. sudo systemctl reload apache2