- Start Mattermost server
$ make serve
- Open http://localhost:8065/
- Add Incoming Webhook manually
- Change Integration Management setting via System Console
Enable integrations to override usernames: true Enable integrations to override profile picture icons: true
- Modify Incoming Webhook URL
$ vi incoming/main.go ... const ( WEBHOOK_URL = "http://localhost:8065/hooks/ftcxcu4aypfutqby89yhpe7kze" ) ...
- Run bot program
$ go run incoming/main.go