Skip to content

Commit 86ffb9b

Browse files
authored
Merge pull request #97 from SLNE-Development/feat/remove-cloud-and-update-with-after-cloud-stuff
Fix webhook
2 parents c8766bf + f663814 commit 86ffb9b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kotlin.code.style=official
22
kotlin.stdlib.default.dependency=false
33
org.gradle.parallel=true
4-
version=1.21.10-4.0.3-SNAPSHOT
4+
version=1.21.10-4.0.4-SNAPSHOT

surf-chat-bukkit/src/main/kotlin/dev/slne/surf/chat/bukkit/processor/post/AiModerationPostChatProcessor.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ object AiModerationPostChatProcessor : PostChatProcessor {
103103
messageContext: MessageContext,
104104
classification: OpenAiService.ClassificationResult
105105
) {
106-
val senderUuid = messageContext.messageData.sender
107-
106+
val senderUuid = messageContext.messageData.sender.uuid
108107
val webhook = Webhook {
109108
username = "Arty AI Moderation"
110109
avatarUrl = aiModerationConfig.webhookAvatarUrl
@@ -162,7 +161,7 @@ object AiModerationPostChatProcessor : PostChatProcessor {
162161
field {
163162
name = "Sender"
164163
value =
165-
"[${nameOrUuid(senderUuid.uuid)}](${aiModerationConfig.userPanelPrefix}$senderUuid)"
164+
"[${nameOrUuid(senderUuid)}](${aiModerationConfig.userPanelPrefix}$senderUuid)"
166165
inline = true
167166
}
168167

0 commit comments

Comments
 (0)