app

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Example: app

This example shows the registration of a slash command /start, a block action (from a button press) start-button, a view submission callback form-modal, and an event handler for message.

To run this example:

  1. Set your Slack app's signing secret and bot token in your environment
  2. Run go run app.go
  3. Run ngrok http 4000 in another terminal
  4. Update your Slack app at api.slack.com/apps with:
    1. Commands: Add /start with the URL {ngrok_url}/commands
    2. Interactions: Use {ngrok_url}/interactions as the endpoint
    3. Events: Subscribe to the "message" event type and use {ngrok_url}/events for the Events API endpoint
  5. Run the /start command in Slack

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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