config.docker.lua

changeset 156
619b1b9c16bc
child 158
57ee70718ecc
equal deleted inserted replaced
155:68ee41b41a71 156:619b1b9c16bc
1 package.path = "/opt/custom-plugins/?.lua;"..package.path;
2 package.cpath = "/opt/custom-plugins/?.lua;"..package.cpath;
3
4 local function split(s)
5 local r = {};
6 for t in (s or ""):gmatch("[^%s,]+") do
7 r[#r+1] = t;
8 end
9 return r;
10 end
11
12 jid = os.getenv "RIDDIM_JID" or "bot@localhost"
13 password = os.getenv "RIDDIM_PASSWORD" or "password"
14 nick = os.getenv "RIDDIM_NICK" or "riddim"
15
16 autojoin = split(os.getenv "RIDDIM_ROOMS")
17
18 plugins = split(os.getenv "RIDDIM_PLUGINS" or "groupchat, commands")
19 debug = true

mercurial