Matrix-Minetest bridge
Go to file
Bram van den Heuvel d619784b1c Broaden death message 2024-02-21 00:28:45 +01:00
lua Fix http_api nil bug 2024-02-20 16:54:57 +01:00
lua-json@261adde7a7 Expose JSON 2024-02-20 10:56:43 +01:00
.gitignore Initial commit 2024-02-19 23:46:32 +00:00
.gitmodules Change remote for submodule linking 2024-02-20 11:05:04 +01:00
LICENSE Initial commit 2024-02-19 23:46:32 +00:00
README.md Fix access token leak 2024-02-20 11:54:47 +01:00
config.lua Add config.lua 2024-02-20 01:06:54 +01:00
init.lua Broaden death message 2024-02-21 00:28:45 +01:00
mod.conf Add mod description 2024-02-20 11:20:27 +01:00

README.md

mt-matrix

This repository serves as a bridge between Matrix and Minetest servers.

Setup

  1. Clone this repository into your Minetest mods folder:
git clone --recursive https://git.noordstar.me/Bram/mt-matrix.git
  1. To access the Matrix homeserver, this mod needs access to HTTP calls. Add this mod to your minetest.conf settings at the field secure.http_mods:
#    Comma-separated list of mods that are allowed to access HTTP APIs, which
#    allow them to upload and download data to/from the internet.
#    type: string
secure.http_mods=mt_matrix
  1. Fill in the values in config.lua:
config = {

    -- The user one expects to log in as
    user = "@alice:example.org",

    -- The URL where the user communicates with the Matrix homeserver
    url = "https://matrix.example.org",

    -- Room ID that the Minetest server bridges to
    room_id = "!room_id:example.org",

    -- Access token to access the Matrix homeserver
    access_token = "",

    -- Average timeout duration
    sync_timeout = 30
}

  1. Add the mod to your world configuration.

Now you're good to go! Feel free to create issues or send me a message.