You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help make sure that PluralKit doesn't jam up the log with unnecessary messages, maybe you could run every message through this before logging it:
funisProxyTrigger(id:String): Boolean {
val client =HttpClient.newBuilder().build()
val request =HttpRequest.newBuilder().uri(URI.create("https://api.PluralKit.me/v2/messages/"+id)).build()
val response =StringBuilder(client.send(request, HttpResponse.BodyHandlers.ofString()).body())
val json:JsonObject=Parser.default().parse(response) asJsonObjectreturnif (json.int("code") !=null) falseelse json.string("id") != id
}
If the result is true just don't log it. Additionally don't log messages matching the regex /pk;e.*/i to eliminate message-edit commands.
The text was updated successfully, but these errors were encountered:
To help make sure that PluralKit doesn't jam up the log with unnecessary messages, maybe you could run every message through this before logging it:
If the result is
true
just don't log it. Additionally don't log messages matching the regex/pk;e.*/i
to eliminate message-edit commands.The text was updated successfully, but these errors were encountered: