? Eri

Full-fledged Kotlin client for MikaBot/cluster-operator as a separate package

Usage

Connecting to operator

fun main(args: Array<String>) {
    val operator = ClusterOperator {
        uri = "host:port"
        auth = "auth string"
    }
    
    // coroutine to launch the ws client
    operator.launch()
}

Relay Client

fun main(args: Array<String>) {
    val relay = RelayService {
        uri = "host:port"
        auth = "auth string"
    }
    
    // coroutine to launch ws client
    relay.launch()
}

Modules

Eri is split into modules to pick and choose what you want to use.

Installation

? Documentation | ✏️ v1.0.0

Gradle

Kotlin DSL

repositories {
    maven {
        url = uri("https://maven.floofy.dev/repo/releases")
    }
}

dependencies {
    implementation("sh.nino.libs:eri-core:<VERSION>")
}

Groovy DSL

repositories {
    maven {
        url "https://maven.floofy.dev/repo/releases"
    }
}

dependencies {
    implementation "sh.nino.libs:eri-core:<VERSION>"
}

Maven

<repositories>
    <repository>
        <id>noel-maven</id>
        <url>https://maven.floofy.dev/repo/releases</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>sh.nino.libs</groupId>
        <artifactId>eri-core</artifactId>
        <version>{{VERSION}}</version>
        <type>pom</type>
    </dependency>
</dependencies>

License

Eri is released under the MIT License.

GitHub

View Github