When a member clicks on a button we currently send a message to the community channel.
Instead we should update an airtable.
To create a record you'll need an API key, base ID, and table name.
The API key can be accessed in production via the environment variable AIRTABLE_API_KEY.
The base ID can be accessed in production via the environment variable AIRTABLE_USERS_BASE_ID
The table name is OperationCodeBotStats.
The table has 3 columns:
user (string) the user that clicked the button
button (string) - the button that was clicked
clicked_at (date) - when the button was clicked
When a member clicks on a button we currently send a message to the
community
channel.Instead we should update an airtable.
To create a record you'll need an API key, base ID, and table name.
The API key can be accessed in production via the environment variable
AIRTABLE_API_KEY
. The base ID can be accessed in production via the environment variableAIRTABLE_USERS_BASE_ID
The table name isOperationCodeBotStats
.The table has 3 columns:
user
(string
) the user that clicked the buttonbutton
(string
) - the button that was clickedclicked_at
(date
) - when the button was clicked