Skip to content
Filip edited this page Sep 6, 2019 · 13 revisions

Twitch messaging in Kotlin - TmiK

Introduction

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("my_channel") }
  onMessage { 
    // Respond to channel the message came from
    sendMessage("Nice to see you @${message.displayName} !") 
  }
}

Dependencies

TmiK relies only on:

Installation

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
}