ovenemprex/example/ome_webhook.conf

15 lines
867 B
Text

[Service]
# These variables are for a Discord webhook, to do stream online/offline
# announcements.
Environment="OVENMONITOR_WEBHOOK_URL=FULL WEBHOOK URL"
Environment="OVENMONITOR_WEBHOOK_ONLINE=TEXT WHEN STREAM GOES ONLINE"
Environment="OVENMONITOR_WEBHOOK_OFFLINE=TEXT WHEN STREAM GOES OFFLINE"
Environment="OVENMONITOR_WEBHOOK_NAME=NAME TO ASSIGN TO WEBHOOK BOT"
# These variables attempt to set the webhook bot above to use a specific avatar
# for each given announcement, based on the stream key that invokes the hook.
# AVATARPATH will be searched for an image named {app}/{stream}.png and use it.
# Otherwise it will use default.png.
# When going offline, offline.png will be used.
Environment="OVENMONITOR_WEBHOOK_AVATARPATH=/srv/http/example.com/assets/webhook_avatars"
Environment="OVENMONITOR_WEBHOOK_AVATARURL=https://example.com/assets/webhook_avatars"