config.docker.lua

Fri, 07 Aug 2020 12:26:15 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 07 Aug 2020 12:26:15 +0100
changeset 156
619b1b9c16bc
child 158
57ee70718ecc
permissions
-rw-r--r--

config.docker.lua: Add to repo, used by default for Docker images

156
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 package.path = "/opt/custom-plugins/?.lua;"..package.path;
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2 package.cpath = "/opt/custom-plugins/?.lua;"..package.cpath;
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
4 local function split(s)
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 local r = {};
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6 for t in (s or ""):gmatch("[^%s,]+") do
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 r[#r+1] = t;
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 end
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9 return r;
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10 end
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12 jid = os.getenv "RIDDIM_JID" or "bot@localhost"
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
13 password = os.getenv "RIDDIM_PASSWORD" or "password"
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14 nick = os.getenv "RIDDIM_NICK" or "riddim"
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16 autojoin = split(os.getenv "RIDDIM_ROOMS")
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
17
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 plugins = split(os.getenv "RIDDIM_PLUGINS" or "groupchat, commands")
619b1b9c16bc config.docker.lua: Add to repo, used by default for Docker images
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 debug = true

mercurial