diff --git a/init.lua b/init.lua index 970cb62..620e31f 100644 --- a/init.lua +++ b/init.lua @@ -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")