Skip to content

Added MultiProperties to Clean Up Bot Configuration#4

Merged
jasonlessenich merged 1 commit intomainfrom
andrew/properties
May 30, 2021
Merged

Added MultiProperties to Clean Up Bot Configuration#4
jasonlessenich merged 1 commit intomainfrom
andrew/properties

Conversation

@andrewlalis
Copy link
Contributor

Basically, the ConfigElement and ConfigString were quite inefficient in that they use the filesystem every time they look something up, which is slow if the bot ever expands to need more properties. So I just made a static variable in Bot.java and load it from the bot.props file. I also added MultiProperties, which makes it possible to essentially have multiple properties files, and have properties in some override the properties in others.

@jasonlessenich jasonlessenich merged commit 0ae55d9 into main May 30, 2021
@andrewlalis andrewlalis deleted the andrew/properties branch May 30, 2021 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants