A fun trivia game using GPT to generate questions and Vonage API's to get help from other developers
- Node 16 or higher
- Air Table (for finding players and audience)
- A Vonage Application that has numbers for receiving SMS and can make Phone calls
- NGrok (if running locally)
Rename env.dist
and fill in the correct environment variables
PORT
Port to run webserver onVONAGE_API_KEY
API KeyVONAGE_API_SECRET
API SecretVONAGE_PRIVATE_KEY
The Private key for the application (should be the contents of the file)VONAGE_APPLICATION_ID
Vonage Application IDOPENAI_API_KEY
ChatGPT API keyFROM_NUMBER
Number to send text messages fromAT_BASE_ID
Base ID for the AirTableAT_TABLE_ID
AirTable table IDAIRTABLE_TOKEN
AirTable Token
npm run start
Start the webservernpm run watch
Watch changes and restart the web server (use for dev)npm run livereload
Set up live reload (use for dev)
- Games will be written to a local file (
games.json
) - SMS Messages will be streamed into a file (
particpants.txt
) - When using the
Text the Audience
feature, the application will update the URLS for the Vonage Application to include the game Id. This means that you cannot run two games at the same time using the same Vonage Application