Skip to content

QuantumMob/Hack-22-Team-C-Lunch-Lady-Bot

 
 

Repository files navigation

hackathon-2022-slackbot

Adapted from https://blog.logrocket.com/build-a-slackbot-in-node-js-with-slacks-bolt-api/

Required

  1. yarn
  2. node v16.15.0

Setup Workspace and Slack App

  1. Clone this repo
  2. Create a new slack workspace for testing
  3. Create a new slack app > Create New App
  • Use manifest method
  • Upload the ./manifest.json file in this repo
  • Select the workspace you made above
  1. Install slack app to workspace
  2. Populate .env file variables
  • SLACK_BOT_OAUTH_TOKEN
    • Left Nav > Features > OAuth & Permissions
    • Copy token from OAuth Tokens for Your Workspace
  • SLACK_SIGNING_SECRET
    • Left Nav > Settings > Basic Information
    • Copy token from App Credentials Section
  • SLACK_APP_LEVEL_TOKEN
    • Left Nav > Settings > Basic Information > Generate App Level Token:
      • Name: SocketMode
      • Add Scope: connections:write and authorizations:read
    • Copy token after token creation
  1. Reinstall app if prompted

Getting Started

  1. yarn install dependencies
  2. yarn build build
  3. yarn dev run server

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%