Skip to content

Commit

Permalink
Add user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous123-code committed Feb 7, 2024
1 parent ca4dafe commit 6d55d35
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.kotlindiscord.kord.extensions.koin.KordExKoinComponent
import dev.kord.core.event.Event
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
Expand All @@ -30,6 +31,9 @@ public abstract class LogProcessor : BaseLogHandler, KordExKoinComponent {
ContentType.Any
)
}
install(UserAgent) {
agent = "QuiltMC/cozy-discord (quiltmc.org)"
}
}

protected open suspend fun predicate(log: Log, event: Event): Boolean =
Expand Down

0 comments on commit 6d55d35

Please sign in to comment.