Skip to content

Commit

Permalink
Merge pull request #982 from rafaelcpalmeida/patch-1
Browse files Browse the repository at this point in the history
Fix socket mode example
  • Loading branch information
kanata2 committed Oct 8, 2021
2 parents 4e58a08 + a34f9ab commit 4d3d964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/socketmode/socketmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
func main() {
appToken := os.Getenv("SLACK_APP_TOKEN")
if appToken == "" {

fmt.Fprintf(os.Stderr, "SLACK_APP_TOKEN must be set.\n")
os.Exit(1)
}

if !strings.HasPrefix(appToken, "xapp-") {
Expand Down

0 comments on commit 4d3d964

Please sign in to comment.