dont send messages to owncast chat when not streaming
This commit is contained in:
parent
3e1a5c2a07
commit
b0240b0dac
1 changed files with 3 additions and 3 deletions
2
myapp.pl
2
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"});
|
||||
}
|
||||
}
|
||||
|
||||
sub send_system_chat_to_owncast ($body) {
|
||||
|
|
Loading…
Reference in a new issue