Call the galley menu line and send the recording & transcription in Discord.
You can replicate the PostgreSQL table structure by running the following query on your local Postgres server:
CREATE TABLE menus (
id SERIAL PRIMARY KEY,
menu_recording text,
transcription varchar,
date TIMESTAMP default CURRENT_TIMESTAMP
);
To start up the Express server, run npm run devstart
. This will start it with
Nodemon, so the server will automatically restart whenever you make changes to
important files. You can view it at localhost:5000
.
To start a local Postgres server, run psql postgresql://[user[:password]@][netloc][:port][/dbname]
,
filling in your server's information where appropriate.
You should create a .env
file with the following values assigned:
- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
- DATABASE_URL
- BOT_TOKEN
- SONIX_API_KEY