slackbot

package module
v0.0.0-...-30761ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 12 Imported by: 0

README

wordimg slackbot

It is slack command that generates emoji.

image

Install Commands

  1. Deploy to cloud funciton.
./deploy.sh $your_projectID
  1. Set the URL environment variable to the URL of wordimg. (https://wordimg-otho5yxlgq-an.a.run.app/wordimg)

  2. Creat slack app.

  3. Add slash commands. URL is the url of deployed cloud funciton.

    • /wordimg
    • /wordimg1
    • /wordimg2
    • /wordimg3
  4. Add a chat:write to oauth scope.

  5. Install slack app.

  6. Create secret.

    • SLACK_SECRET Signing Secret of slack.
    • SLACK_APIKEY Bot User OAuth Access Token of slack.
  7. Grant secret accessor privileges to the cloud function service account.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlackEmojiGen

func SlackEmojiGen(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL