diff --git a/myapp.pl b/myapp.pl index 506d6c1..d16e081 100755 --- a/myapp.pl +++ b/myapp.pl @@ -245,10 +245,10 @@ sub send_chat_to_owncast ($body, $nick) { 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) {