diff --git a/init.lua b/init.lua index 1559509..ad71bcd 100644 --- a/init.lua +++ b/init.lua @@ -11,16 +11,17 @@ local mod_start_time = core.get_us_time() core.log("action", "[MOD] yl_matterbridge loading") yl_matterbridge = {} -yl_matterbridge.error = {} -yl_matterbridge.modstorage = core.get_mod_storage() -yl_matterbridge.modpath = core.get_modpath("yl_matterbridge") .. DIR_DELIM -yl_matterbridge.worldpath = core.get_worldpath() .. DIR_DELIM +--yl_matterbridge.error = {} +--yl_matterbridge.modstorage = core.get_mod_storage() +--yl_matterbridge.modpath = core.get_modpath("yl_matterbridge") .. DIR_DELIM +--yl_matterbridge.worldpath = core.get_worldpath() .. DIR_DELIM yl_matterbridge.information = {} yl_matterbridge.information.version = "0.0.2" yl_matterbridge.information.author = "AliasAlreadyTaken" yl_matterbridge.information.license = "MIT" yl_matterbridge.information.name = "yl_matterbridge" +yl_template.information.source = "https://gitea.your-land.de/AliasAlreadyTaken/yl_matterbridge" yl_matterbridge.information.additional = "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() +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, "} diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..0c2f69f Binary files /dev/null and b/screenshot.png differ