diff --git a/src/main/kotlin/net/taehui/twilight/NetItem.kt b/src/main/kotlin/net/taehui/twilight/NetItem.kt index aa8e00d..1fcadf2 100644 --- a/src/main/kotlin/net/taehui/twilight/NetItem.kt +++ b/src/main/kotlin/net/taehui/twilight/NetItem.kt @@ -99,7 +99,7 @@ length = qwilightCallNet.length bpm = qwilightCallNet.bpm multiplier = qwilightCallNet.multiplier - inputMode = Component.InputMode.entries[qwilightCallNet.inputMode] + inputMode = Component.InputMode.entries[qwilightCallNet.inputMode - Component.InputMode.INPUT_MODE_4.value] highestJudgment0 = qwilightCallNet.highestJudgment0 higherJudgment0 = qwilightCallNet.higherJudgment0 highJudgment0 = qwilightCallNet.highJudgment0 diff --git a/src/main/kotlin/net/taehui/twilight/Site.kt b/src/main/kotlin/net/taehui/twilight/Site.kt index 393355b..c63783d 100644 --- a/src/main/kotlin/net/taehui/twilight/Site.kt +++ b/src/main/kotlin/net/taehui/twilight/Site.kt @@ -331,7 +331,7 @@ Translator.translate(avatar.language, twilightSiteYell.siteYell, avatar).thenAccept { avatar.send( EventClass.Event.EventID.MODIFY_SITE_YELL, object { - val siteID = this@Site.siteID + val siteID = this@Site.siteID.toString() val siteYellID = twilightSiteYell.siteYellID val siteYell = it }) @@ -796,7 +796,7 @@ }.forEach { siteYell -> Translator.translate(avatar.language, siteYell.siteYell, avatar).thenAccept { avatar.send(EventClass.Event.EventID.MODIFY_SITE_YELL, object { - val siteID = this@Site.siteID + val siteID = this@Site.siteID.toString() val siteYellID = siteYell.siteYellID val siteYell = it }) diff --git a/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt b/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt index 3369bd2..0064b37 100644 --- a/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt +++ b/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt @@ -139,29 +139,6 @@ override fun onGuildMemberUpdate(event: GuildMemberUpdateEvent) { doCallPlatformAvatars() } - - override fun onGuildVoiceUpdate(event: GuildVoiceUpdateEvent) { - if (!event.member.user.isBot && !event.member.user.isSystem) { - if (event.channelJoined != null) { - qwilightPlatform?.getVoiceChannelById(platformClient.siteAudio) - ?.sendMessage( - String.format( - platformClient.siteYellEnter, - event.member.effectiveName - ) - )?.submit() - } - if (event.channelLeft != null) { - qwilightPlatform?.getVoiceChannelById(platformClient.siteAudio) - ?.sendMessage( - String.format( - platformClient.siteYellQuit, - event.member.effectiveName - ) - )?.submit() - } - } - } }).build().awaitReady() qwilightPlatform = platform?.getGuildById(platformClient.qwilight) doCallPlatformAvatars() @@ -173,7 +150,6 @@ fun dispose() { setTitle(SiteHandler.defaultSiteID, 0) - platform?.shutdown() }