{"id":13473186,"url":"https://github.com/upstash/vercel-note-taker-slackbot","last_synced_at":"2025-06-26T08:06:42.230Z","repository":{"id":41209131,"uuid":"470961755","full_name":"upstash/vercel-note-taker-slackbot","owner":"upstash","description":"Serverless Slackbot with Vercel","archived":false,"fork":false,"pushed_at":"2022-03-29T07:23:14.000Z","size":127,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-22T02:50:05.080Z","etag":null,"topics":["redis","serverless","upstash","vercel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upstash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-17T11:16:14.000Z","updated_at":"2024-02-15T11:49:38.000Z","dependencies_parsed_at":"2022-08-26T04:51:45.730Z","dependency_job_id":null,"html_url":"https://github.com/upstash/vercel-note-taker-slackbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/upstash/vercel-note-taker-slackbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upstash%2Fvercel-note-taker-slackbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upstash%2Fvercel-note-taker-slackbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upstash%2Fvercel-note-taker-slackbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upstash%2Fvercel-note-taker-slackbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upstash","download_url":"https://codeload.github.com/upstash/vercel-note-taker-slackbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upstash%2Fvercel-note-taker-slackbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262026977,"owners_count":23246955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redis","serverless","upstash","vercel"],"created_at":"2024-07-31T16:01:01.517Z","updated_at":"2025-06-26T08:06:42.206Z","avatar_url":"https://github.com/upstash.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Note Taker Slack App/Bot\nThis is a Slack Bot, using Vercel for serverless deployment and Upstash Redis for database.\n\n## Deploy This Project on Vercel!\nSimply fill the environmental variables defined below and your serverless functions will be up in seconds!\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fupstash%2Fvercel-note-taker-slackbot\u0026env=UPSTASH_REDIS_REST_URL,UPSTASH_REDIS_REST_TOKEN,SLACK_SIGNING_SECRET,SLACK_BOT_TOKEN\"\u003e\u003cimg src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Docs\n- ### [What the Bot Does](#what-this-bot-does)\n- ### [Configuring Upstash](#configure-upstash)\n- ### [Configuring Slack Bot - 1](#configure-slack-bot-1)\n- ### [Deploying on Vercel](#deploy-on-vercel)\n- ### [Configuring Slack Bot - 2](#configure-slack-bot-2)\n***\n\n### What The Bot Does\n\u003ca id=\"what-this-bot-does\"\u003e\u003c/a\u003e\n* Events:\n    * New channel created:\n        * When a new is channel created, posts a message to `general` channel stating that such an event happened.\n    * Slackbot mentioned:\n        * Whenever the bot is mentioned, posts a\n        message to `general` channel stating\n        that the bot was mentioned.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/upstash/vercel-note-taker-slackbot/blob/main/public/events.png\"\u003e\n\u003c/p\u003e\n\n\n* Commands:\n    * `/note set \u003ckey\u003e \u003cvalue\u003e` :\n        * Sets a key value pair.\n    * `/note get \u003ckey\u003e` :\n        * Gets the value corresponding to the key\n    * `/note list-set \u003clist_name\u003e \u003citem_as_string\u003e` :\n        * Adds the `\u003citem_as_string\u003e` to `\u003clist_name\u003e` list as an item.\n    * `/note list-all \u003clist_name\u003e` :\n        * Lists all the items in the `\u003clist_name\u003e`\n    * `/note list-remove \u003clist_name\u003e \u003citem_as_string\u003e` :\n        * Removes `\u003citem_as_string\u003e` from the `\u003clist_name\u003e`\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/upstash/vercel-note-taker-slackbot/blob/main/public/slash_commands.png\"\u003e\n\u003c/p\u003e\n\n* P.S: \n    * All of the commands mentioned can be implemented as slackbot mentions rather than slash commands. For demonstration purposes, slash commands are also used. Use cases may differ. \n\n***\n### Configuring Upstash \n\u003ca id=\"configure-upstash\"\u003e\u003c/a\u003e\n1. Go to the [Upstash Console](https://console.upstash.com/) and create a new database\n\n    #### Upstash environment\n    Find the variables in the database details page in Upstash Console:\n    `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` \n\n    (These will be the env variables for vercel deployment) \n\n***\n### Configuring Slack Bot - 1 \n\u003ca id=\"configure-slack-bot-1\"\u003e\u003c/a\u003e\n1. Go to [Slack API Apps Page](https://api.slack.com/apps):\n    * Create new App\n        * From Scratch\n        * Name your app \u0026 pick a workspace \n    * Go to Oauth \u0026 Permissions\n        * Add the following scopes\n            * app_mentions:read\n            * channels:read\n            * chat:write\n            * chat:write.public\n            * commands\n        * Install App to workspace\n            * Basic Information --\u003e Install Your App --\u003e Install To Workspace\n2. Note the variables (These will be the env variables for vercel deployment) : \n    * `SLACK_SIGNING_SECRET`:\n        * Go to Basic Information\n            * App Credentials --\u003e Signing Secret\n    * `SLACK_BOT_TOKEN`:\n        * Go to OAuth \u0026 Permissions\n            * Bot User OAuth Token\n    \n\n\n***\n### Deploying on Vercel \u003ca id=\"deploy-on-vercel\"\u003e\u003c/a\u003e\n\n1. Click the deploy button: \n\n\u003cdiv style=\"text-align:center\"\u003e\n\u003ca href=\"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fupstash%2Fvercel-note-taker-slackbot\u0026env=UPSTASH_REDIS_REST_URL,UPSTASH_REDIS_REST_TOKEN,SLACK_SIGNING_SECRET,SLACK_BOT_TOKEN\"\u003e\u003cimg src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n2. Fill the environmental variables defined above.\n\n***\n### Configuring Slack Bot - 2\n\u003ca id=\"configure-slack-bot-2\"\u003e\u003c/a\u003e\n\n* After deployment, you can use the provided `vercel_domain`.\n\n1. Go to [Slack API Apps Page](https://api.slack.com/apps) and choose relevant app:\n    * Go to Slash Commands:\n        * Create New Command:\n            * Command : `note`\n            * Request URL : `\u003cvercel_domain\u003e/api/note`\n            * Configure the rest however you like.\n    * Go to Event Subscribtions:\n        * Enable Events:\n            * Request URL: `\u003cvercel_domain\u003e/api/events`\n        * Subscribe to bot events by adding:\n            * app_mention\n            * channel_created\n\n2. After these changes, Slack may require reinstalling of the app.\n\n### Additionally\nFor additional explanations of the source code and how to run it locally, you can refer to [the blogpost](https://blog.upstash.com/vercel-note-taker-slackbot).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstash%2Fvercel-note-taker-slackbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupstash%2Fvercel-note-taker-slackbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstash%2Fvercel-note-taker-slackbot/lists"}