12 jid = os.getenv "RIDDIM_JID" or "bot@localhost" |
12 jid = os.getenv "RIDDIM_JID" or "bot@localhost" |
13 password = os.getenv "RIDDIM_PASSWORD" or "password" |
13 password = os.getenv "RIDDIM_PASSWORD" or "password" |
14 nick = os.getenv "RIDDIM_NICK" or "riddim" |
14 nick = os.getenv "RIDDIM_NICK" or "riddim" |
15 autojoin = split(os.getenv "RIDDIM_ROOMS") |
15 autojoin = split(os.getenv "RIDDIM_ROOMS") |
16 plugins = split(os.getenv "RIDDIM_PLUGINS" or "groupchat, commands") |
16 plugins = split(os.getenv "RIDDIM_PLUGINS" or "groupchat, commands") |
17 debug = os.getenv "RIDDIM_DEBUG" or true |
17 debug = (os.getenv "RIDDIM_DEBUG" == "1") and true |
18 connect_port = os.getenv "RIDDIM_CONNECT_PORT" or nil |
18 connect_port = os.getenv "RIDDIM_CONNECT_PORT" or nil |
19 connect_host = os.getenv "RIDDIM_CONNECT_HOST" or nil |
19 connect_host = os.getenv "RIDDIM_CONNECT_HOST" or nil |
20 command_prefix = os.getenv "RIDDIM_COMMAND_PREFIX" or "-" |
20 command_prefix = os.getenv "RIDDIM_COMMAND_PREFIX" or "-" |