- Install apk to all stf devices automatically when someone uploads apk to Slack
1. Bot detects apk file uploaded
2. Install confirmation
3. Install target apk file to all devices managed by your openstf/stf 🎉
Before launching this bot, you have to setup Slack App to use Interactive Messages.
- Create Slack App to create gateway to bot
- Set
https://your-internet-reachable-host.com/slack/receive
toRequest URL
which locates inInteractive Messages
section of App configuration - Set
https://your-internet-reachable-host/oauth
toRedirect URI(s)
which locates inOAuth Information
section of App configuration - Get OAuth
ClientID
andClien Secret
and copy them to.envrc
- To allow bot seeing
file_created
events, add Event namefile_created
toEvent Subscriptions > Bot Events
Setup repository:
$ git clone https://github.com/ainoya/stf-bot
$ cd stf-bot
$ direnv allow
$ npm install
Then, you can start this bot server:
$ node main.js
After bot server is launched, you have to enable integration This Bot App via https://your-internet-reachable-host/login
. If login is succeeded, you can see the bot is online in your Slack. (You can use ngrok to publicize your local bot application for debug)