diff -r 68ee41b41a71 -r 619b1b9c16bc config.docker.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.docker.lua Fri Aug 07 12:26:15 2020 +0100 @@ -0,0 +1,19 @@ +package.path = "/opt/custom-plugins/?.lua;"..package.path; +package.cpath = "/opt/custom-plugins/?.lua;"..package.cpath; + +local function split(s) + local r = {}; + for t in (s or ""):gmatch("[^%s,]+") do + r[#r+1] = t; + end + return r; +end + +jid = os.getenv "RIDDIM_JID" or "bot@localhost" +password = os.getenv "RIDDIM_PASSWORD" or "password" +nick = os.getenv "RIDDIM_NICK" or "riddim" + +autojoin = split(os.getenv "RIDDIM_ROOMS") + +plugins = split(os.getenv "RIDDIM_PLUGINS" or "groupchat, commands") +debug = true