comparison src/lib/Config.luan @ 14:80105b716a62

start bot
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 31 Oct 2023 23:56:48 -0600
parents 43814e9f5802
children
comparison
equal deleted inserted replaced
13:af2b95854072 14:80105b716a62
18 function Config.get_for_config() 18 function Config.get_for_config()
19 local config = get() or {} 19 local config = get() or {}
20 config.discord = config.discord or {} 20 config.discord = config.discord or {}
21 config.discord.client_id = config.discord.client_id or "replace" 21 config.discord.client_id = config.discord.client_id or "replace"
22 config.discord.client_secret = config.discord.client_secret or "replace" 22 config.discord.client_secret = config.discord.client_secret or "replace"
23 config.discord.bot_token = config.discord.bot_token or "replace"
23 return config 24 return config
24 end 25 end
25 26
26 function Config.set(text) 27 function Config.set(text)
27 parse(text) -- validate 28 parse(text) -- validate