{"id":17170292,"url":"https://github.com/alcadesign/autostreamer-bot","last_synced_at":"2025-04-13T16:07:36.040Z","repository":{"id":44139483,"uuid":"189436133","full_name":"AlcaDesign/autostreamer-bot","owner":"AlcaDesign","description":"Send an ffmpeg test pattern stream to a Twitch channel controlled by chat commands.","archived":false,"fork":false,"pushed_at":"2022-12-09T04:31:36.000Z","size":21,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T16:07:30.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlcaDesign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-30T15:16:29.000Z","updated_at":"2024-08-12T19:49:29.000Z","dependencies_parsed_at":"2023-01-25T11:01:37.230Z","dependency_job_id":null,"html_url":"https://github.com/AlcaDesign/autostreamer-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlcaDesign%2Fautostreamer-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlcaDesign%2Fautostreamer-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlcaDesign%2Fautostreamer-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlcaDesign%2Fautostreamer-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlcaDesign","download_url":"https://codeload.github.com/AlcaDesign/autostreamer-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741206,"owners_count":21154254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:29:26.813Z","updated_at":"2025-04-13T16:07:36.010Z","avatar_url":"https://github.com/AlcaDesign.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autostreamer-Bot\n\nSend an ffmpeg test pattern stream to a Twitch channel controlled by chat\ncommands.\n\n## Install\n\nInstall Node.js and ffmpeg on the system and set up the `.env` file from the\n`.env.example` file.\n\n```bash\n$ git clone git@github.com:alcadesign/autostreamer-bot.git\n$ cd autostreamer-bot\n$ npm install\n```\n\n### Environment variables\n\n- **`INGEST_REGION`** - The region of the preferred ingest server. The default\n\tis \"`live-sfo`\". See the [Twitch Ingests][ingests] page for a list of\n\tpossible regions.\n- **`STREAM_KEY`** - A Twitch stream key to authenticate with.\n- **`TWITCH_OWNER_ID`** - The user ID of the owner/controller account.\n- **`TWITCH_BOT_USER`** - The username of the bot account.\n- **`TWITCH_BOT_TOKEN`** - The token of the bot account. Needs the required\n\tscopes for sending messages to chat.\n- **`TWITCH_BOT_CHANNEL`** - The name of the channel to listen to in chat.\n\n## Running\n\nThe basic way to run it is just using Node:\n\n```bash\n$ node index.js\n```\n\nThis bot could be set up using any daemon like `service`, `systemctl`, or Node-\nbased daemons like `pm2` or `forever`.\n\n## Commands\n\n| Command | Arguments | Description\n| --- | --- | --- |\n| `!startstream` | | Start streaming. |\n| `!stopstream` | | Stop streaming. |\n\n## Credits\n\nInspiration from [\"park-stream\"][park-stream] by [freaktechnik][freaktechnik].\n\n# Todo\n\n- Ensure required environment variables are available.\n- Catch possible `tmi.js` errors from `client.say` or if the credentials don't\n\tpass logging in.\n- Allow anonymous (and/or silent) chat integration.\n- Better permission system.\n- Ensure ffmpeg is installed.\n- Ensure the stream _actually_ starts and stops.\n- Investigate `child_process` errors.\n- Expand upon README.\n- Think of more Todo's.\n\n\n[ingests]: https://stream.twitch.tv/ingests/\n[park-stream]: https://github.com/freaktechnik/park-stream\n[freaktechnik]: https://github.com/freaktechnik\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcadesign%2Fautostreamer-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcadesign%2Fautostreamer-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcadesign%2Fautostreamer-bot/lists"}