Matrix bridge for Luanti chat
Go to file
2017-06-21 22:06:45 +02:00
lua-matrix@2946b55810 First working version 2017-06-21 14:18:29 +02:00
.gitmodules First commit 2017-06-21 13:54:54 +02:00
callback.lua Fixed more indentations 2017-06-21 21:35:37 +02:00
config.lua Fixed more indentations 2017-06-21 21:35:37 +02:00
description.txt Added README.md 2017-06-21 21:51:01 +02:00
init.lua Added note about mod security. Also: 2017-06-21 22:06:28 +02:00
LICENSE.txt First working version 2017-06-21 14:18:29 +02:00
mod.conf First working version 2017-06-21 14:18:29 +02:00
README.md Merge branch 'master' of github.com:diggers-mt/matrix-minetest 2017-06-21 22:06:45 +02:00
settingtypes.txt Removed unused setting 2017-06-21 21:38:07 +02:00

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.

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
export MATRIX_API_HTTP_CLIENT=luasocket

Ubuntu

Tested on 16.04.

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

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

For the moment you need to disabled mod security for lua-matrix to work. This will hopefully change.

secure.enable_security = false

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), https://matrix.org

  • matrix.port: Server port, default 8448

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

License

See LICENSE.txt for details.