• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Tumitumie

Tumitumie

wikiapptry

Public
Like
wikiapptry
Home
Code
3
backend
6
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
backend
/
handlers
/
README.md
Code
/
backend
/
handlers
/
README.md
Search
5/19/2025
Viewing readonly version of main branch: v19
View latest version
README.md

Message Handlers

This directory contains the handlers for processing incoming messages and API requests.

Files

messageHandler.ts

Handles incoming WhatsApp messages and processes user commands.

Commands

  • !fact - Send a random fun fact
  • !audio - Send a random audio clip
  • !video - Send a random video clip
  • !fact [topic] - Send a fact about a specific topic
  • !audio [topic] - Send an audio clip about a specific topic
  • !video [topic] - Send a video clip about a specific topic
  • !topics - Show available topics
  • !help - Show help message

adminHandler.ts

Handles admin API requests for content management.

Endpoints

  • GET /admin/topics - Get all available topics
  • POST /admin/facts - Add a new fact
  • POST /admin/audio - Add a new audio clip
  • POST /admin/video - Add a new video clip
  • DELETE /admin/facts/:id - Delete a fact
  • DELETE /admin/audio/:id - Delete an audio clip
  • DELETE /admin/video/:id - Delete a video clip
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.