Skip to content

ainoya/stf-bot

Repository files navigation

A Slack bot controlling openstf/stf devices

Features

  • 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 🎉

Setup

Before launching this bot, you have to setup Slack App to use Interactive Messages.

  1. Create Slack App to create gateway to bot
  2. Set https://your-internet-reachable-host.com/slack/receive to Request URL which locates in Interactive Messages section of App configuration
  3. Set https://your-internet-reachable-host/oauth to Redirect URI(s) which locates in OAuth Information section of App configuration
  4. Get OAuth ClientID and Clien Secret and copy them to .envrc
  5. To allow bot seeing file_created events, add Event name file_created to Event Subscriptions > Bot Events

How to use

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)

References

About

A Slack bot controlling openstf/stf devices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published