/afk

Auto responder CSM, for when you're Away From Keyboard, while playing Minetest

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

OpenSource Minetest PythonVersions License Git.io

afk

Auto responder CSM, for when you're Away From Keyboard, while playing Minetest

Completed:

  • keep a list of who tried to message you, while you were away
  • menu, so you can add common nicknames
  • save nicknames
  • first AFK response will be in-game chat for all to see
  • any further responses will be /msg'd back to player

known limitations:

  • you can't use this with another CSM that has custom message responses.
    it appears minetest only allows one instance of .register_on_receiving_chat_messages()
    so it won't work with my [friendly_chat] CSM, or another one that colors chat.
    I'll likely merge the functions, so all this code will end up in [friendly_chat]

Todo:

  • custom response messages
    kinda~sorta already implimented, might make a menu for it
    there's a random list you can easily edit in the init.lua file.

Install:

unzip in your /minetest/clientmods/ folder

rename folder so it just says afk instead of afk-master

open your mods.conf file in notepad++

or any other text editor that respects unix line-endings.
add the line load_mod_afk = true
save and close that file

if you haven't enabled CSM's yet:

in your file explorer, go up one folder level
so you're now in your /minetest/ directory
look for your minetest.conf file and open it in notepad++ or similar
if you don't have the line enable_client_modding = true then add it
save and exit. enjoy minetest.

to use

bring up text with t or f10, then type .afk to see main window
type in any other nicknames you might commonly encounter
go about your buisness, and return to a window full of notes