Skip to content

tuzkiyoung/slack-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modification Based on Building Slack Bots in Golang

This project demonstrates how to build a Slackbot in Golang; it uses the slack-go library and communicates with slack using the socket mode.

Run the project

Create a file /config/config.yaml with the following variables:

slack:
  appToken: "xapp-xxxxxx"
  botToken: "xoxb-xxxxxx"
  debug: false
  chanID: "xxxxxxx"
mysql:
  dbUser: xxxx
  dbPwd: "xxxxxxxxxxx"
  dbHost: xxxxxxxx
  dbPort: xxxx    // default 3306
  dbName: xxxxxxxx
arms:
  url: "https://alerts.aliyuncs.com/api/v1/integrations/custom/xxxxxx"

Run the application

go run main.go

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published