2018-02-01 14:15:38 -05:00
|
|
|
function bot_command_players(filename)
|
2018-02-01 09:16:10 -05:00
|
|
|
game.write_file(filename, string.format("Online players (%d):",#game.connected_players), false,0)
|
|
|
|
local online_players = #game.connected_players
|
2018-02-01 09:05:36 -05:00
|
|
|
for _,p in pairs(online_players) do
|
|
|
|
game.write_file(filename, p.name, true,0)
|
2018-01-31 17:08:58 -05:00
|
|
|
end
|
2018-02-01 09:05:36 -05:00
|
|
|
end
|
2018-02-01 15:16:49 -05:00
|
|
|
|
2018-02-01 15:26:23 -05:00
|
|
|
function bot_command_time(filename)
|
2018-02-01 15:29:47 -05:00
|
|
|
game.write_file(filename, string.format("Time since server start (%d):"),#math.floor(game.tick / 60), false,0)
|
2018-02-01 15:16:49 -05:00
|
|
|
end
|