Discover Packages
github.com/jacob-ian/slap
examples
app
command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 18, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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:
Set your Slack app's signing secret and bot token in your environment
Run go run app.go
Run ngrok http 4000
in another terminal
Update your Slack app at api.slack.com/apps with:
Commands: Add /start
with the URL {ngrok_url}/commands
Interactions: Use {ngrok_url}/interactions
as the endpoint
Events: Subscribe to the "message" event type and use {ngrok_url}/events
for the Events API endpoint
Run the /start
command in Slack
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.