the ideas in question:
local function get_msg_table(user,channel)
local time, date = get_time_date()
local msg = get_msg()
return {time,date,user.unsme,user.uid,channel.id,channel.name,msg}
end
local function save_msg(user,channel)
local t = get_msg_table
local file =
io.open(“users/“..uid..”.lua”)