aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/soundchan/BotListener/BotListener.java8
-rw-r--r--usersound.properties.example7
2 files changed, 15 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");
diff --git a/usersound.properties.example b/usersound.properties.example
index 9575f01..248d71c 100644
--- a/usersound.properties.example
+++ b/usersound.properties.example
@@ -2,3 +2,10 @@
//Discord user and the file (with extension)
Queen=WeAreTheChampions.mp3
+
+//We can also link to sounds in folders inside the main sound folder
+Shrek=More/SmashMouth.wav
+
+//Map multiple people to same sound
+Thing1=sawing_wood.wav
+Thing2=sawing_wood.wav