config.docker.lua

Sun, 05 Dec 2021 18:35:18 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 05 Dec 2021 18:35:18 +0000
changeset 164
69b508f132b5
parent 161
c4df517edbc1
permissions
-rw-r--r--

Import util.hashes from Prosody

This gives us a wider selection of hashes, including SHA256

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 = (os.getenv "RIDDIM_DEBUG" == "1") and true
connect_port = os.getenv "RIDDIM_CONNECT_PORT" or nil
connect_host = os.getenv "RIDDIM_CONNECT_HOST" or nil
command_prefix = os.getenv "RIDDIM_COMMAND_PREFIX" or "-"

mercurial