Skip to content

Conversation

@MiniClem
Copy link

@MiniClem MiniClem commented Feb 6, 2019

Hello,
I'm not an active PR user but I wanted to use your bot and then I saw i could touch the code and I love Java..
So first things first, I was in the EnvVariable class and saw it was a bit complicated and could lead to errors if, imagine, you got more than String in the .env file.
Then I decided to make a litle "feature" on a new Utils called Variables.
It is pretty much the same thing as yours, but it now offers the power to add more to a new file called configuration.properties. It is more common to use these in a Java project than Env variables or files like this. I'm the first to be guilty of using env variable before knowing the Properties trick

Finally, you will find in the PR, the new Utils Variables, changes to the codebase using it and a test class, because you want test classes and I'm still training to do them every time I think of it 😄 .
Nothing big in term of functionality.

Hope you like and merge it 😉

That utils help manage in a different and more easily readable way all config variable you need to run your bot
With the new utils you can now use these variable from the config file
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.

1 participant