added notification when server is stopped or started
This commit is contained in:
parent
1000540ef9
commit
3c2cf48e04
7
init.lua
7
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")
|
||||
|
Loading…
Reference in New Issue
Block a user