diff --git a/pom.xml b/pom.xml index 541c22d..0eff3ac 100644 --- a/pom.xml +++ b/pom.xml @@ -119,12 +119,12 @@ org.xerial sqlite-jdbc - 3.36.0.3 + 3.42.0.0 org.json json - 20220924 + 20230227 org.jetbrains.kotlin diff --git a/src/main/java/dev/cosgy/textToSpeak/Listener.kt b/src/main/java/dev/cosgy/textToSpeak/Listener.kt index f3c3923..54b2259 100644 --- a/src/main/java/dev/cosgy/textToSpeak/Listener.kt +++ b/src/main/java/dev/cosgy/textToSpeak/Listener.kt @@ -89,7 +89,7 @@ class Listener(private val bot: Bot) : ListenerAdapter() { } } if (event.channelJoined != null) { - if (settings!!.isJoinAndLeaveRead() && Objects.requireNonNull(event.guild.selfMember.voiceState)?.channel === event.channelJoined) { + if (settings.isJoinAndLeaveRead() && Objects.requireNonNull(event.guild.selfMember.voiceState)?.channel === event.channelJoined) { val file: String? = try { bot.voiceCreation.createVoice( event.guild,