aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2018-07-06 20:57:14 -0400
committerMatt Kohls <mattkohls13@gmail.com>2018-07-06 20:57:14 -0400
commit296d1b7c87c5497425f6b46070f46bf4caa22ad1 (patch)
treee011142f736a3374e853671d80ee1248e69c58c5 /src/main
parent6ffac3806e3369649ae26a7c9a58baaf52c35829 (diff)
downloadSoundChan-296d1b7c87c5497425f6b46070f46bf4caa22ad1.tar.gz
SoundChan-296d1b7c87c5497425f6b46070f46bf4caa22ad1.tar.bz2
SoundChan-296d1b7c87c5497425f6b46070f46bf4caa22ad1.zip
Breaking out properties loading and adding comments
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/soundchan/BotListener/BotListener.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/soundchan/BotListener/BotListener.java b/src/main/java/soundchan/BotListener/BotListener.java
index cccb39a..7a65f78 100644
--- a/src/main/java/soundchan/BotListener/BotListener.java
+++ b/src/main/java/soundchan/BotListener/BotListener.java
@@ -44,6 +44,14 @@ public class BotListener extends ListenerAdapter{
AudioSourceManagers.registerRemoteSources(playerManager);
AudioSourceManagers.registerLocalSource(playerManager);
+ loadProperties(properties);
+ }
+
+ /**
+ * Loads various properties from config file
+ * @param properties Object holding the contents of the property file
+ */
+ private void loadProperties(Properties properties) {
localFilePath = properties.getProperty("localFilePath");
followingUser = properties.getProperty("followingUser");
String temp = properties.getProperty("audioOnUserJoin");