Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ks6088ts/slack-events-listener-go
A web server which handles events received from Slack Events API written in Go
https://github.com/ks6088ts/slack-events-listener-go
Last synced: 28 days ago
JSON representation
A web server which handles events received from Slack Events API written in Go
- Host: GitHub
- URL: https://github.com/ks6088ts/slack-events-listener-go
- Owner: ks6088ts
- License: mit
- Created: 2021-09-05T08:16:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T20:24:35.000Z (11 months ago)
- Last Synced: 2024-06-21T12:57:03.705Z (5 months ago)
- Language: Go
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![test](https://github.com/ks6088ts/slack-events-listener-go/workflows/test/badge.svg)](https://github.com/ks6088ts/slack-events-listener-go/actions/workflows/test.yml)
[![release](https://github.com/ks6088ts/slack-events-listener-go/workflows/release/badge.svg)](https://github.com/ks6088ts/slack-events-listener-go/actions/workflows/release.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/ks6088ts/slack-events-listener-go)](https://goreportcard.com/report/github.com/ks6088ts/slack-events-listener-go)
[![GoDoc](https://godoc.org/github.com/ks6088ts/slack-events-listener-go?status.svg)](https://godoc.org/github.com/ks6088ts/slack-events-listener-go)# slack-events-listener-go
## Usage
```bash
A web server which handles events received from Slack Events API written in GoUsage:
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 infoFlags:
--config string config file (default is $HOME/.cli.yaml)
-h, --help help for cli
-t, --toggle Help message for toggleUse "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
- [Using the Slack Events API](https://api.slack.com/apis/connections/events-api)
- [Service accounts](https://cloud.google.com/iam/docs/service-accounts)