test-bed

command
v0.0.0-...-82c4727 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

Slack Bots

Codes and snippets for building slack bots

Channel Message

To send a message to a channel, create your json pay load and send

SLACKFILE=""
SLACKWEBHOOK=""
curl -X POST -H 'Content-type: application/json' --data-binary "@${SLACKFILE}" ${SLACKWEBHOOK}

Slack Buttons

This code snippet responds to message button above. Download ngrok and run in a separate terminal

ngrok http 8080

Then start slack bot

go run slack-button.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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