[Mod] matrix_bridge

Post Reply
tuxmain
New member
Posts: 9
Joined: Wed Dec 30, 2020 10:51
GitHub: ZettaScript
In-game: tuxmain
Location: France
Contact:

[Mod] matrix_bridge

by tuxmain » Post

Bidirectional bridge between in-game chat and a Matrix server. (Matrix is an open standard for federated, secure, modern instant messaging)

Demo server: Juneland Survival (survival.juneland.fr:30000) | Matrix chatroom

Tested on Minetest 5.3.0, 5.4.0. (a proxy is needed for 5.3.0, see details in readme)

Requires secure.http_mods
Mod dependencies: none
Code: GNU AGPLv3
Download: Git repository | Latest: ZIP, TAR.GZ
Authors: tuxmain, scuti (donate libre currency Ğ1)

ost
New member
Posts: 5
Joined: Sat Feb 19, 2022 16:54

Re: [Mod] matrix_bridge

by ost » Post

Hi!
i wanted to try this mod, but on player joining the server crash. The server is running on 5.5
2022-02-19 13:23:05: WARNING[Server]: Undeclared global variable "req" accessed at ...e/zgh/.minetest/mods/minetest-matrix_bridge/init.lua:144
2022-02-19 13:23:05: ACTION[Main]: Server: Shutting down
2022-02-19 13:23:05: ACTION[Main]: matrix_bridge - signing out.
2022-02-19 13:23:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'matrix_bridge' in callback on_joinplayer(): /usr/local/share/minetest/builtin/game/misc.lua:255: bad argument #1 to 'fetch_async' (table expected, got nil)
2022-02-19 13:23:06: ERROR[Main]: stack traceback:
2022-02-19 13:23:06: ERROR[Main]: [C]: in function 'fetch_async'
2022-02-19 13:23:06: ERROR[Main]: /usr/local/share/minetest/builtin/game/misc.lua:255: in function 'fetch'
2022-02-19 13:23:06: ERROR[Main]: ...e/zgh/.minetest/mods/minetest-matrix_bridge/init.lua:144: in function 'send'
2022-02-19 13:23:06: ERROR[Main]: ...e/zgh/.minetest/mods/minetest-matrix_bridge/init.lua:237: in function 'func'
2022-02-19 13:23:06: ERROR[Main]: .../share/minetest/builtin/profiler/instrumentation.lua:107: in function '?'
2022-02-19 13:23:06: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:425: in function </usr/local/share/minetest/builtin/game/register.lua:409>

tuxmain
New member
Posts: 9
Joined: Wed Dec 30, 2020 10:51
GitHub: ZettaScript
In-game: tuxmain
Location: France
Contact:

Re: [Mod] matrix_bridge

by tuxmain » Post

Oops, I fixed that on my server but forgot to push it to the repo. This is done now.

Thank you!

ost
New member
Posts: 5
Joined: Sat Feb 19, 2022 16:54

Re: [Mod] matrix_bridge

by ost » Post

Each time a message is send the log show this:

Code: Select all

2022-03-30 21:56:16: ERROR[CurlFetch]: HTTPFetch for https://matrix.example.com/_matrix/client/r0/sync?since=s526432_5125561_62707_565845_49753_104_14240_551018_1&timeout=60000 returned response code 400
And sometimes it spam the message every second until i reset the server.

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [Mod] matrix_bridge

by gpcf » Post

The git hosting site seems down, gives me an error 502

tuxmain
New member
Posts: 9
Joined: Wed Dec 30, 2020 10:51
GitHub: ZettaScript
In-game: tuxmain
Location: France
Contact:

Re: [Mod] matrix_bridge

by tuxmain » Post

ost wrote:
Thu Mar 31, 2022 19:24
Each time a message is send the log show this:

Code: Select all

2022-03-30 21:56:16: ERROR[CurlFetch]: HTTPFetch for https://matrix.example.com/_matrix/client/r0/sync?since=s526432_5125561_62707_565845_49753_104_14240_551018_1&timeout=60000 returned response code 400
And sometimes it spam the message every second until i reset the server.
What Matrix server are you using (software+version)? What Minetest server version?
The only server I tested it with is conduit (conduit.rs). Maybe Synapse behaves slightly differently.

ost
New member
Posts: 5
Joined: Sat Feb 19, 2022 16:54

Re: [Mod] matrix_bridge

by ost » Post

tuxmain wrote:
Sun May 22, 2022 20:56
What Matrix server are you using (software+version)? What Minetest server version?
The only server I tested it with is conduit (conduit.rs). Maybe Synapse behaves slightly differently.
I was using Synapse, but not sure what version (a friend is hosting it) and the Minetest server is 5.5
we finally moved to yl_matterbridge and is working fine, but your mod is easier to deploy

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 13 guests