From 296d1b7c87c5497425f6b46070f46bf4caa22ad1 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Fri, 6 Jul 2018 20:57:14 -0400 Subject: Breaking out properties loading and adding comments --- src/main/java/soundchan/BotListener/BotListener.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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"); -- cgit v1.2.3