Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tedkulp/twitch-notifier
Serverless functions for sending notifications when you start streaming
https://github.com/tedkulp/twitch-notifier
Last synced: 2 days ago
JSON representation
Serverless functions for sending notifications when you start streaming
- Host: GitHub
- URL: https://github.com/tedkulp/twitch-notifier
- Owner: tedkulp
- Created: 2018-09-23T12:34:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T05:36:28.000Z (about 2 years ago)
- Last Synced: 2024-11-14T10:41:23.345Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Huh?
This is a serverless function for handling notifications when you go online on Twitch.
It assumes you have both a Twitch and Mastodon account you want to send to, so I'm not
sure it's terribly useful in it's current state to people. This will get more work in
the future as my needs expand.This assumes you have AWS setup with all the credentials and stuff. It also assumes Serverless
is setup correctly on your computer. Look for a good tutorial if this is all new to you.## Setup
Create a copy of the env file
cp .env.yml.sample .env.yml
Fill in with all your deets. Then:
npm install
## Deployment
Because you don't know what the URL is going to be before the first deployement, deploy it once
sls deploy
Fill in the BASE_URL in .env.yml with the base URL that serverless gave you. Then redeploy.
sls deploy
If this is the first time, you'll then need to manually register the webhook with Twitch. After that,
the cron job should handle the re-registration every 7 days.curl https://somethingsomething.execute-api.us-east-1.amazonaws.com/dev/register
## Teardown
If for some reason you want to turn this off:
curl https://somethingsomething.execute-api.us-east-1.amazonaws.com/dev/unregister