A Wikipedia-style bot that can be integrated with WhatsApp to provide fun facts, audio clips, and video content on demand.
/backend/index.ts - Main HTTP endpoint for WhatsApp webhook/backend/database/ - SQLite database setup and queries/backend/handlers/ - Message handling logic/backend/content/ - Content management for facts, audio, and video/shared/ - Shared types and utilitiesWHATSAPP_VERIFY_TOKEN - For webhook verificationWHATSAPP_TOKEN - Your WhatsApp Business API tokenWHATSAPP_PHONE_NUMBER_ID - Your WhatsApp phone number IDADMIN_API_KEY - Secret key for accessing admin endpointsUsers can interact with the bot using commands:
!fact - Get a random fun fact!audio - Get a random audio clip!video - Get a random video!fact [topic] - Get a fact about a specific topic!help - Show available commandsThis project uses SQLite for storage and is built to run on Val Town.