Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.96 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.96 KB

Llama

Llama is a Slack bot that:

Super Simple!

We built this bot on glitch.com using Slack's Bolt framework for Node.JS and have since deployed it to a Google Cloud Function.

Remix on Glitch

Getting Started

On Glitch

  • Just hit the button above - and follow the Slack installation steps below - adding the SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET .env variables

Locally

  • Install dependencies with yarn
  • Add the SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET env variables to a .env file in the root
  • Run the app using yarn start

GCP

This repository includes a Github Actions script to deploy the service to a serverless cloud function in GCP

  • Simply fork this repo and specify the following 'secrets' in GitHub actions settings image

Slack Setup

  • Setup a new Slack App at https://app.slack.com/apps-manage
  • Create a 'Bot User' for this new Slack App
  • Subscribe to Events API for your app - for the link_shared event - register www.notion.so as your app unfurl domain
  • Add your request URL for the bot to the Slack Events page, it should look like https://<your-hostname-here>/events
  • Enable the following 'Bot token Scopes' in the OAuth and Permissions tab image
  • Click to "install app" to your workspace and note the Bot user OAuth access token + Signing Secret - add those to your running application via the instructions above.