This is a Slack Bot, using Vercel for serverless deployment and Upstash Redis for database.
Simply fill the environmental variables defined below and your serverless functions will be up in seconds!
general channel stating that such an event happened.general channel stating
that the bot was mentioned.
/note set <key> <value> :
/note get <key> :
/note list-set <list_name> <item_as_string> :
<item_as_string> to <list_name> list as an item./note list-all <list_name> :
<list_name>/note list-remove <list_name> <item_as_string> :
<item_as_string> from the <list_name>
Go to the Upstash Console and create a new database
Find the variables in the database details page in Upstash Console:
UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN
(These will be the env variables for vercel deployment)
SLACK_SIGNING_SECRET:
SLACK_BOT_TOKEN:
vercel_domain.Go to Slack API Apps Page and choose relevant app:
note<vercel_domain>/api/note<vercel_domain>/api/eventsAfter these changes, Slack may require reinstalling of the app.
For additional explanations of the source code and how to run it locally, you can refer to the blogpost.
This is a Slack Bot, using Vercel for serverless deployment and Upstash Redis for database.
Simply fill the environmental variables defined below and your serverless functions will be up in seconds!
general channel stating that such an event happened.general channel stating
that the bot was mentioned.
/note set <key> <value> :
/note get <key> :
/note list-set <list_name> <item_as_string> :
<item_as_string> to <list_name> list as an item./note list-all <list_name> :
<list_name>/note list-remove <list_name> <item_as_string> :
<item_as_string> from the <list_name>
Go to the Upstash Console and create a new database
Find the variables in the database details page in Upstash Console:
UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN
(These will be the env variables for vercel deployment)
SLACK_SIGNING_SECRET:
SLACK_BOT_TOKEN:
vercel_domain.Go to Slack API Apps Page and choose relevant app:
note<vercel_domain>/api/note<vercel_domain>/api/eventsAfter these changes, Slack may require reinstalling of the app.
For additional explanations of the source code and how to run it locally, you can refer to the blogpost.