Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config implementation #12

Merged
merged 3 commits into from
Apr 2, 2020

Conversation

artyom-poptsov
Copy link
Collaborator

See #6.

* src/main/java/rpgram/core/Config.java: Add to the repository.
* src/main/java/rpgram/Main.java: Use it. Use default proxy settings if no proxy
  settings found in the configuration file.
* README.md (Configuration): New chapter.
* src/main/java/rpgram/Main.java (main): Check arguments number; throw an
  exception when wrong number of arguments is specified.
* src/main/java/rpgram/RPGram.java (RPGram): Accept configuration intsance as a
  parameter and store it in a private field.  All callers updated.
  (getBotUsername, getBotToken): Use values from the config.
* src/main/java/rpgram/Main.java (main): Update.
@artyom-poptsov artyom-poptsov merged commit 3ffeff2 into Zemllia:master Apr 2, 2020
@artyom-poptsov artyom-poptsov deleted the config-implementation branch April 2, 2020 12:21
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.

None yet

1 participant