Break when http is not available

This commit is contained in:
AliasAlreadyTaken 2022-02-26 00:00:38 +01:00
parent 968217abd2
commit a9d6cd5392
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ local token = core.settings:get("yl_matterbridge.token") or ""
local http = core.request_http_api()
assert(http, "Please add yl_matterbridge to secure.http_mods")
function send(user_name, message_text)
local url = "http://" .. address .. ":" .. port .. "/api/message"
local post_headers = {"Content-Type: application/json, "}