aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2018-07-01 18:24:00 -0400
committerMatt Kohls <mattkohls13@gmail.com>2018-07-01 18:24:00 -0400
commit652582ea0338add8d04ba42daa8f3c0956fa071d (patch)
tree8acdecff88645a826d8927ed076be7c8b4a846d4
parent8ef0634fff740d10668c80a0c57a35ff5e9f635c (diff)
downloadSoundChan-652582ea0338add8d04ba42daa8f3c0956fa071d.tar.gz
SoundChan-652582ea0338add8d04ba42daa8f3c0956fa071d.tar.bz2
SoundChan-652582ea0338add8d04ba42daa8f3c0956fa071d.zip
Cleaning up things a bit
-rw-r--r--src/main/java/soundchan/BotListener/BotListener.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/main/java/soundchan/BotListener/BotListener.java b/src/main/java/soundchan/BotListener/BotListener.java
index 8c144c6..95fef3c 100644
--- a/src/main/java/soundchan/BotListener/BotListener.java
+++ b/src/main/java/soundchan/BotListener/BotListener.java
@@ -85,15 +85,6 @@ public class BotListener extends ListenerAdapter{
playerManager.loadItemOrdered(musicManager, filepath, new AudioLoadResultHandler() {
@Override
public void trackLoaded(AudioTrack track) {
- int timeStart = filepath.lastIndexOf('=');
- if (timeStart != -1) {
- String timeString = filepath.substring(timeStart);
-
- //The format will be 1h2m53s, need to parse that into seconds and then call
- //track.setPosition(long position)
-
- }
-
play(monitoredGuild, musicManager, track, true);
}
@@ -109,12 +100,12 @@ public class BotListener extends ListenerAdapter{
@Override
public void noMatches() {
- //channel.sendMessage("Nothing found by " + trackUrl).queue();
+ // Needed, but shouldn't be called
}
@Override
public void loadFailed(FriendlyException exception) {
- //channel.sendMessage("Could not play: " + exception.getMessage()).queue();
+ // Needed, but shouldn't be called
}
});
}
@@ -351,6 +342,7 @@ public class BotListener extends ListenerAdapter{
* @return True if it matches a value to enable, False otherwise
*/
private static boolean settingEnableCheck(String value) {
+ value = value.toLowerCase();
if(value.contentEquals("true") || value.contentEquals("1") ||
value.contentEquals("yes") || value.contentEquals("on") ||
value.contentEquals("enable"))