A piece of code to play sound when someone in the office has been palacsinta bombed via slack by the precious /palacsinta
command.
- Register a free Pusher account
- On linux you have to install Festival
apt-get install festival
- Don't forget to plug in the speakers
Recommended to install on a Rasberry Pi and place it in the middle of the office.
yarn
PUSHER_API_KEY = ''
PUSHER_CLUSTER = ''
yarn start
Send events with these settings | |
---|---|
Channel | palacsinta-channel |
Event | palacsinta-happened |
Data (optional*) | { "name": "the name who has been palacsinta bombed" } |
* Data is optional but an empty object is still required
- Select palacsinta sound with the slack command:
/palacsinta [number:1-4]
Music: Belga: Csumpa - Palacsinta