Browse Source

Initial work on the actual bot.

pull/1/head
Izaya 7 years ago
parent
commit
f104fa41f3
  1. 18
      init.lua

18
init.lua

@ -0,0 +1,18 @@
local socket = require "socket"
local serialization = require "serialization"
local config = {}
function loadconfig()
local f = io.open("config.lua","rb")
local content = f:read("*a")
f:close()
config = serialization.unserialize(dat)
end
function saveconfig()
local newconfig = serialization.serialize(config)
local f = io.open("config.lua","rb")
f:write(newconfig)
f:close()
end
Loading…
Cancel
Save