See .env.local.example
for environment variables.
- User guesses a number
- Check to see if they are following you
- If they are not, respond with an image / message saying they need to follow you first
- If they are following you, check to see if the number is correct
- If number is not correct, return "wrong number" image
- If number is correct, update KV store to set that the game is over, and respond to the winner with a message letting them know
- Once the game is over, respond with a message letting them know the game is over.
Uses:
- Vercel KV for persistence
- Airstack for follow and id information
- Next.js for API routes