Matrix bridge for Luanti chat
Go to file
2025-11-13 17:46:25 -05:00
lua-matrix@151355a790 Remove need for secure.enable_security (#7) 2017-08-08 12:33:33 +02:00
neturl@e69ad0d005 Breaking changes: 2017-09-12 11:30:03 +02:00
.gitmodules Breaking changes: 2017-09-12 11:30:03 +02:00
callback.lua Fixed more indentations 2017-06-21 21:35:37 +02:00
config.lua Breaking changes: 2017-09-12 11:30:03 +02:00
debug.lua Thats just stupid 2017-09-12 12:44:42 +02:00
init.lua Update mod name in README and init (#15) 2022-01-21 18:57:51 +00:00
LICENSE.txt First working version 2017-06-21 14:18:29 +02:00
mod.conf Update "mod.conf" to set description (#13) 2019-09-04 08:21:16 +02:00
README.md Added fork note to README 2025-11-13 17:46:25 -05:00
settingtypes.txt Breaking changes: 2017-09-12 11:30:03 +02:00
validate_server.lua Breaking changes: 2017-09-12 11:30:03 +02:00

This is a fork of diggers-mt/matrix_chat.

Matrix mod for Minetest

This mod creates a bridge between a Matrix channel and the in-game chat. The code is shamelessly based on the irc mod and examples from lua-matrix.

This branch (master) needs a Matrix user that listens for messages and sends to Minetest. Chat messages posted in-game will be sent with the bot to the Matrix channel like so:

@minetestbot: <myuser> hello world

For a bridge where virtual users are created in Matrix, checkout the appservice branch!

This is a work in progress Until we have a stable release, expect breaking changes and whatnot.

Installing

cd <Mods directory> && git clone --recursive git@github.com:diggers-mt/minetest-matrix.git

OS X

brew install lua@5.1
luarocks-5.1 install lua-cjson
brew install openssl
luarocks-5.1 install cqueues CRYPTO_DIR=/usr/local/opt/openssl/ OPENSSL_DIR=/usr/local/opt/openssl #https://github.com/wahern/cqueues/wiki/Installation-on-OSX#via-brew
luarocks-5.1 install luaossl CRYPTO_DIR=/usr/local/opt/openssl/ OPENSSL_DIR=/usr/local/opt/openssl
luarocks-5.1 install luasocket
luarocks-5.1 install luasec OPENSSL_DIR=/usr/local/opt/openssl
export MATRIX_API_HTTP_CLIENT=luasocket

Ubuntu

Tested on 16.04.

apt-get install lua5.1 luarocks lua-sec
luarocks install lua-cjson
luarocks install luasocket
luarocks install luasec
export MATRIX_API_HTTP_CLIENT=luasocket

You might need to prepend sudo to first and second commands.

For the moment you need to add matrix_chat to secure.trusted_mods for lua-matrix to work. This will hopefully change.

secure.trusted_mods = matrix_chat

Settings

  • matrix.user: Matrix username, for example @minetestbot:matrix.org

  • matrix.password: Password for Matrix user

  • matrix.server: Server to connect to, include http(s) and port, https://matrix.org

  • matrix.room_id: Room to join, room_id in matrix. Always starts with !

Removed, don't use

  • matrix.port: Server port, default 8448

License

See LICENSE.txt for details.