Commit Graph

2 Commits

Author SHA1 Message Date
Radosław Gierwiało
1ff70a9f7f feat: add event creation script with random slugs
Add reusable script for creating events with secure random slugs.

- Create backend/scripts/create-event.js with CLI interface
- Add npm script 'event:create' to package.json
- Generate 8-character random hex slugs using crypto
- Include date validation and error handling
- Display event details and URL after creation
2025-12-06 17:50:57 +01:00
Radosław Gierwiało
671b16cb82 feat(backend): add test bot for automated event chat testing
Add test-bot.js script that simulates a user participating in event chat for testing purposes.

Features:
- Authenticates as user via API
- Checks in to event using QR code token
- Connects to Socket.IO and joins event room
- Sends random messages at configurable intervals
- Auto-accepts recording suggestions

Usage from container:
docker compose exec backend sh -c 'API_URL=http://localhost:3000 node scripts/test-bot.js --email user@example.com --password pass --slug event-slug --interval 10'
2025-11-29 19:00:43 +01:00