added notification when server is stopped or started

This commit is contained in:
Vitaliy Olkhin 2024-10-10 13:26:49 +05:00
parent 1000540ef9
commit 3c2cf48e04

View File

@ -197,5 +197,12 @@ if chat_id then
end)
end
end
minetest.register_on_mods_loaded(function()
telegram.send_message(chat_id, "The server has started")
end)
minetest.register_on_shutdown(function()
telegram.send_message(chat_id, "Server shutdown")
end)
dofile(modpath .. "/commands.lua")