[Mod] Minetest Remote Chatroom (remote_chat)

Post Reply
User avatar
sorcerykid
Member
Posts: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

[Mod] Minetest Remote Chatroom (remote_chat)

by sorcerykid » Post

Minetest Remote Chatroom v1.0
remote_chat (by sorcerykid)

Minetest Remote Chatroom works in conjunction with my Javascript API (of the same name) for displaying a live chat feed on your homepage. Of course, you can also capture chat output for use in other programs, e.g. background chat monitoring.

You can see a working example of the mod on the JT2 homepage:
https://jt2.intraversal.net/

Image

Repository:

https://bitbucket.org/sorcerykid/remote_chat

Download Archive (.zip)
Download Archive (.tar.gz)

Dependencies:

Configuration Panel Mod (required)

Source Code License:

The MIT License (MIT)

Installation:
  1. Unzip the archive into the mods directory of your game.
  2. Rename the remote_chat-master directory to "remote_chat".
Overview:

All chat output will be recorded in realtime to a file named "chatlog[PORT].dat". The path to this file can be specified in config.lua. You will also need to specify the active server ports for which you want to record the chat output (this is necessary since multiple instances of Minetest can be running the same game).

Code: Select all

output_path = "/var/www/html/data"
active_ports = {
        [30000] = true,
        [30001] = false,
        [30002] = false,
}
Note: Don't forget to change the ownership of this file so that the Minetest server process can open it for writing. In addition, this file must also be readable by CGI scripts, if it is intended to be used on your homepage (it doesn't need to be in a public-facing web directory, however).

Once these steps are complete, then start the server and execute a tail -f command from the shell to ensure the chat output is being properly recorded.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests