dont send messages to owncast chat when not streaming

This commit is contained in:
jake 2024-08-31 21:17:47 -04:00
parent 3e1a5c2a07
commit b0240b0dac

View file

@ -245,10 +245,10 @@ sub send_chat_to_owncast ($body, $nick) {
json => {body => $body}); json => {body => $body});
} }
} }
$ua->post("$ENV{ OWNCAST_URL }/api/integrations/chat/send" =>
{'Authorization' => "Bearer $ENV{ OWNCAST_ACCESS_TOKEN }" } =>
json => {body => "\\<$nick\\> $body"});
} }
$ua->post("$ENV{ OWNCAST_URL }/api/integrations/chat/send" =>
{'Authorization' => "Bearer $ENV{ OWNCAST_ACCESS_TOKEN }" } =>
json => {body => "\\<$nick\\> $body"});
} }
sub send_system_chat_to_owncast ($body) { sub send_system_chat_to_owncast ($body) {