forked from syntaxbullet/aurorabot
chore(cleanup): remove completed tickets
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
### Context & Goal
|
||||
|
||||
The bot currently relies on `console.error` which is hard to track and lacks context. A centralized error logging service will allow for better debugging, persistent error logs, and future integration with services like Sentry or Discord webhooks for alerts.
|
||||
|
||||
### Dependencies
|
||||
|
||||
- None
|
||||
|
||||
### Affected Files
|
||||
|
||||
- `shared/lib/logger.ts`: New file for the unified logger service.
|
||||
- `bot/lib/handlers/CommandHandler.ts`: Update to use the new logger for command errors.
|
||||
- `web/src/server.ts`: Update to use the new logger for API and WebSocket errors.
|
||||
|
||||
### Technical Constraints & Strategy
|
||||
|
||||
- Implementation: Create a `Logger` class/object in `shared/lib`.
|
||||
- Support log levels: `info`, `warn`, `error`, `debug`.
|
||||
- Errors should capture: timestamp, source (bot/web), error message, and stack trace if available.
|
||||
- For now, logging to console and a local log file (e.g., `logs/error.log`) is sufficient.
|
||||
|
||||
### Definition of Done (Binary)
|
||||
|
||||
- [ ] `Logger` service implemented in `shared/lib/logger.ts`.
|
||||
- [ ] Command errors are logged via the new service.
|
||||
- [ ] Web server errors are logged via the new service.
|
||||
- [ ] Log output is formatted consistently.
|
||||
|
||||
### New Test Files
|
||||
|
||||
- `shared/lib/logger.test.ts`: Verify logger output and file writing.
|
||||
@@ -1,28 +0,0 @@
|
||||
### Context & Goal
|
||||
|
||||
Enhance the user experience by standardizing the look and feel of Discord embeds. Adding consistent branding like a custom footer (with version info) and using the bot's accent color will make the bot feel more professional.
|
||||
|
||||
### Dependencies
|
||||
|
||||
- None
|
||||
|
||||
### Affected Files
|
||||
|
||||
- `bot/lib/embeds.ts`: Update standard embed creators.
|
||||
- `shared/lib/constants.ts`: Add branding-related constants (colors, footer text).
|
||||
|
||||
### Technical Constraints & Strategy
|
||||
|
||||
- Implementation: Update `createBaseEmbed` and other helpers to automatically include footers and standard colors.
|
||||
- Use info from `package.json` for versioning in the footer.
|
||||
- Ensure the changes don't break existing layouts where custom colors might be needed.
|
||||
|
||||
### Definition of Done (Binary)
|
||||
|
||||
- [x] All standard embeds now include a consistent footer.
|
||||
- [x] Embeds use a predefined brand color by default.
|
||||
- [x] Version number is automatically pulled for the footer.
|
||||
|
||||
### New Test Files
|
||||
|
||||
- None.
|
||||
Reference in New Issue
Block a user