Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.2 KB

README.md

File metadata and controls

43 lines (25 loc) · 1.2 KB

Slack Missile Launcher

Fire missiles at your enemies via Slack! For example /shoot ben.

Launcher Gif

Requires the Dream Cheeky missile launcher.

Setup

Run the webserver locally with the device attached

This server will receive commands from Slack.

cp settings_sample.py settings.py
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python missile.py

Expose the webserver to the public

One quick and dirty way to do this is with ngrok

Add the Slack command hook

Add a Slack command hook and point it to your webserver: http://yourserver.com/slack

Test the connection

Does /shoot right 1000 move the device for 1 second?

Update settings.py

The format is [X, Y], declaring how much the device moves right and then up before shooting. Add a slackbot remote control command if you'd like to have launch alerts.

Notes

Based on code by https://github.com/codedance/Retaliation

The code is super hacky right now, but it works.