# HG changeset patch # User Matthew Wild # Date 1596799575 -3600 # Node ID 619b1b9c16bc6f4122c281df8a105855254b84cd # Parent 68ee41b41a713885767d667abd63372a8706a9e8 config.docker.lua: Add to repo, used by default for Docker images 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