diff --git a/src/main/kotlin/net/taehui/twilight/system/IO.kt b/src/main/kotlin/net/taehui/twilight/system/IO.kt index 8f86daa..61b1ca8 100644 --- a/src/main/kotlin/net/taehui/twilight/system/IO.kt +++ b/src/main/kotlin/net/taehui/twilight/system/IO.kt @@ -393,9 +393,6 @@ if (w.size > 3) { PlatformIDSystem.putPlatformID(w[2], w[3]) continue - } else if (w.size > 2) { - PlatformIDSystem.wipePlatformID(w[2]) - continue } } @@ -423,7 +420,7 @@ } } - logInfo("platform avatar : Put or Wipe Avatar") + logInfo("platform avatar : Put Avatar") logInfo("platform view: View Platform") logInfo("platform handle: Handle Platform") logInfo("platform dispose: Close Platform") diff --git a/src/main/kotlin/net/taehui/twilight/system/PlatformIDSystem.kt b/src/main/kotlin/net/taehui/twilight/system/PlatformIDSystem.kt index 01662d1..91b7828 100644 --- a/src/main/kotlin/net/taehui/twilight/system/PlatformIDSystem.kt +++ b/src/main/kotlin/net/taehui/twilight/system/PlatformIDSystem.kt @@ -31,10 +31,6 @@ platformIDAvatarIDMap[if (platformID.startsWith("$")) platformID else "$$platformID"] = avatarID } - fun wipePlatformID(platformID: String) { - platformIDAvatarIDMap.remove(if (platformID.startsWith("$")) platformID else "$$platformID") - } - fun getAvatarID(platformID: String): String { return platformIDAvatarIDMap.getOrDefault(platformID, platformID) } diff --git a/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt b/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt index 244e2e0..279ec0c 100644 --- a/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt +++ b/src/main/kotlin/net/taehui/twilight/system/PlatformSystem.kt @@ -133,7 +133,6 @@ override fun onSlashCommandInteraction(event: SlashCommandInteractionEvent) { event.deferReply().queue() - println(Thread.currentThread().threadId()) when (event.name) { "role" -> { @@ -175,7 +174,7 @@ JSON.TaehuiGetTotem::class.java ) - PlatformIDSystem.putPlatformID(event.id, avatarID) + PlatformIDSystem.putPlatformID(event.user.id, avatarID) event.hook.sendMessage("You logged in as ${taehuiGetTotem.avatarName} to Qwilight Channel") .setEphemeral(true).queue() } catch (e: HttpResponseException) {