This project demonstrates how to build a Slackbot in Golang; it uses the slack-go library and communicates with slack using the socket mode.
Working on this project inspired me to write a couple of articles that you can read here or on Medium (* I included friend links so you won't hit Medium Paywall)
-
Tutorial 0 : Every Slack Application starts with a few simple steps
-
Tutorial 1 : Build Your Slack App Home in Golang Using Socket Mode
-
Tutorial 2 : Properly Welcome Users in Slack with Golang using Socket Mode
-
Tutorial 3: Implement Slack Slash Command with Golang using Socket Mode
-
WIP Tutorial 4: [Creating Slack Shortcuts with Golang using Socket Mode]
-
Article 1 : Manage Static Assets in Golang
-
Article 2 : Handler and Middleware design pattern in Golang
-
Article 3 : Diagrams as code 3 must have tools
-
Article 4 : Golang’s untyped constants might make your work easier. But there’s a catch
-
WIP: Article 5 : You need a Dojo ⛪
Create a file test_slack.env
with the following variables:
SLACK_BOT_TOKEN=xoxb-xxxxxxxxxxx
SLACK_APP_TOKEN=xapp-1-xxxxxxxxx
Run the application
go run main.go
- Greetings
- App Home
- Slack commands
Tutorial 2 : Properly Welcome Users in Slack with Golang using Socket Mode
Tutorial 1 : Build Your Slack App Home in Golang Using Socket Mode
Tutorial 3: Implement Slack Slash Command with Golang using Socket Mode