Skip to content

A simple script for announcing nginx-rtmp streams to Discord

License

Notifications You must be signed in to change notification settings

noodlebox/stream-announcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

stream-announcer

A simple script for announcing nginx-rtmp streams to Discord.

announce.sh

Simple shell script that posts a stream announcement to a Discord channel via webhook.

Requires

  • curl
  • jq

Setup

Configure by setting the variables at the top of the script.

Usage with nginx-rtmp

Add this to a server, rtmp, or application block:

exec_kill_signal term;
exec_push /path/to/announce.sh;

Make sure announce.sh is marked executable for nginx's user.

nginx-rtmp also supports passing along parameters with some information about the stream, so you could easily extend this script to handle those.

About

A simple script for announcing nginx-rtmp streams to Discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages