slack-events-listener-go

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT

README

test release Go Report Card GoDoc

slack-events-listener-go

Usage

A web server which handles events received from Slack Events API written in Go

Usage:
  cli [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  help        Help about any command
  run         Run a slack event listener
  version     Print version info

Flags:
      --config string   config file (default is $HOME/.cli.yaml)
  -h, --help            help for cli
  -t, --toggle          Help message for toggle

Use "cli [command] --help" for more information about a command.

Get Started

  1. Setup Slack app settings to subscribe event types you need.
  2. Setup Google Sheets API and service accounts
  3. Run server with the following commands
  4. Setup a proxy server and Set Request URL. For example, if you use ngrok, you should set https://YOURDOMAIN.ngrok.io/slack/events to Request URL in Slack apps settings.
cli run \
    --secret SLACK_SIGNING_SECRET \
    --token SLACK_BOT_TOKEN \
    --credentials PATH_TO_CREDENTIALS_FOR_GOOGLE \
    --sheetId SHEET_ID

Reference

Directories

Path Synopsis
cli
cmd
Package cmd ...
Package cmd ...

Jump to

Keyboard shortcuts

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