Merge branch 'master' into readme
This commit is contained in:
commit
1e91e78158
11
init.lua
11
init.lua
@ -11,16 +11,17 @@ local mod_start_time = core.get_us_time()
|
|||||||
core.log("action", "[MOD] yl_matterbridge loading")
|
core.log("action", "[MOD] yl_matterbridge loading")
|
||||||
|
|
||||||
yl_matterbridge = {}
|
yl_matterbridge = {}
|
||||||
yl_matterbridge.error = {}
|
--yl_matterbridge.error = {}
|
||||||
yl_matterbridge.modstorage = core.get_mod_storage()
|
--yl_matterbridge.modstorage = core.get_mod_storage()
|
||||||
yl_matterbridge.modpath = core.get_modpath("yl_matterbridge") .. DIR_DELIM
|
--yl_matterbridge.modpath = core.get_modpath("yl_matterbridge") .. DIR_DELIM
|
||||||
yl_matterbridge.worldpath = core.get_worldpath() .. DIR_DELIM
|
--yl_matterbridge.worldpath = core.get_worldpath() .. DIR_DELIM
|
||||||
|
|
||||||
yl_matterbridge.information = {}
|
yl_matterbridge.information = {}
|
||||||
yl_matterbridge.information.version = "0.0.2"
|
yl_matterbridge.information.version = "0.0.2"
|
||||||
yl_matterbridge.information.author = "AliasAlreadyTaken"
|
yl_matterbridge.information.author = "AliasAlreadyTaken"
|
||||||
yl_matterbridge.information.license = "MIT"
|
yl_matterbridge.information.license = "MIT"
|
||||||
yl_matterbridge.information.name = "yl_matterbridge"
|
yl_matterbridge.information.name = "yl_matterbridge"
|
||||||
|
yl_template.information.source = "https://gitea.your-land.de/AliasAlreadyTaken/yl_matterbridge"
|
||||||
yl_matterbridge.information.additional =
|
yl_matterbridge.information.additional =
|
||||||
"Sends and receives ingame chat to and from matterbridge https://github.com/42wim/matterbridge"
|
"Sends and receives ingame chat to and from matterbridge https://github.com/42wim/matterbridge"
|
||||||
|
|
||||||
@ -31,6 +32,8 @@ local token = core.settings:get("yl_matterbridge.token") or ""
|
|||||||
|
|
||||||
local http = core.request_http_api()
|
local http = core.request_http_api()
|
||||||
|
|
||||||
|
assert(http, "Please add yl_matterbridge to secure.http_mods")
|
||||||
|
|
||||||
function send(user_name, message_text)
|
function send(user_name, message_text)
|
||||||
local url = "http://" .. address .. ":" .. port .. "/api/message"
|
local url = "http://" .. address .. ":" .. port .. "/api/message"
|
||||||
local post_headers = {"Content-Type: application/json, "}
|
local post_headers = {"Content-Type: application/json, "}
|
||||||
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user