/webhook is reserved for Towns events, you can add custom routes for external webhooks, APIs, and scheduled tasks.
Using Bot Methods Anywhere
Bot methods likesendMessage() can be called directly on the bot instance, outside of event handlers. This enables integration with external services.
External Webhooks
Integrate with external services like GitHub, Linear, Stripe, or custom APIs.Scheduled Tasks
Use intervals or cron jobs to send periodic updates.Persistent Storage
Popular options:- SQLite/Turso - Simple, serverless-compatible
- Redis - Fast caching and rate limiting
- PostgreSQL - Full-featured relational database
- Supabase - Managed PostgreSQL with APIs
Next Steps
- Explore onchain integrations
- Learn about slash commands
- Read about event handlers