-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Filip edited this page Jul 16, 2019
·
13 revisions
TmiK is multiplatfrom Twitch messaging library written in Kotlin. Create simple and easy to read hierarchy of filters and listeners. You can start with just few lines of code:
tmi("oauth:$myToken") {
onConnected { join("$myChannel") }
onMessage {
// Respond to channel from where the message came
sendMessage("Nice to see you @${message.displayName} !")
}
}
TmiK relies only on:
- KotlinX Coroutines
- OkHttp for JVM implementation of WebSockets
- ws for JS implementation of WebSockets
You can download this library from bintray
repositories {
maven { url "https://dl.bintray.com/wooodenleg/maven" }
}
dependencies {
implementation "com.tmik:TmiK-jvm:$tmikVersion" // For JVM
// OR
implementation "com.tmik:TmiK-js:$tmikVersion" // For JS
}