Code: Select all
write_file (filename, data, append, for_player)
Code: Select all
local function log_message(msg)
msg = game.tick .. " " .. msg
game.write_file(baseFolder .. baseFile, "[FactorioChatBot]: " .. serpent.line(msg, { comment = false }, true))
end