Break when http is not available
This commit is contained in:
parent
968217abd2
commit
a9d6cd5392
2
init.lua
2
init.lua
|
@ -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, "}
|
||||
|
|
Loading…
Reference in New Issue