OperationCode / operationcode_bot

Slack bot for responding to Slack events and handling interactive messages. (not currently in use)
MIT License
8 stars 37 forks source link

Send button click stats to airtable #57

Open rickr opened 7 years ago

rickr commented 7 years ago

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