diff options
| -rw-r--r-- | soundchan.properties.example | 5 | ||||
| -rw-r--r-- | src/main/java/soundchan/BotListener/BotListener.java | 3 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/soundchan.properties.example b/soundchan.properties.example index 2ba3290..c15a89a 100644 --- a/soundchan.properties.example +++ b/soundchan.properties.example @@ -7,7 +7,12 @@ localFilePath=C:\\PATH\\TO\\SOUNDS\\DIRECTORY  //The user for the   followingUser=USERNAME +//Flag conditions enabled with any of the following values: +// true, on, enable, yes, 1 +//any other string (or empty) will leave the condition disabled +  //If you want SoundChan to play an audio file whit their name when a user joins the channel or have that information come from below file +//This is a flag condition  audioOnUserJoin=on/off  //The file where users and sound clips are related, see usersound.properties.example for more info diff --git a/src/main/java/soundchan/BotListener/BotListener.java b/src/main/java/soundchan/BotListener/BotListener.java index 7a65f78..b54edbe 100644 --- a/src/main/java/soundchan/BotListener/BotListener.java +++ b/src/main/java/soundchan/BotListener/BotListener.java @@ -54,8 +54,7 @@ public class BotListener extends ListenerAdapter{      private void loadProperties(Properties properties) {          localFilePath = properties.getProperty("localFilePath");          followingUser = properties.getProperty("followingUser"); -        String temp = properties.getProperty("audioOnUserJoin"); -        audioOnUserJoin = settingEnableCheck(temp); +        audioOnUserJoin = settingEnableCheck(properties.getProperty("audioOnUserJoin"));          if(audioOnUserJoin) {              localManager = new LocalAudioManager(localFilePath, properties.getProperty("userAudioFilePath"));          } | 
