Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Chris Smith c6b0471761 Raise ServerConnected event, track status nicely 5 роки тому
gradle/wrapper Upgrade to Gradle 5.1.1, fix new deprecations 5 роки тому
src Raise ServerConnected event, track status nicely 5 роки тому
.gitignore Make gradlew executable 5 роки тому
.travis.yml Deploy to bintray on tags 5 роки тому
CHANGELOG Raise ServerConnected event, track status nicely 5 роки тому
LICENCE Licence 5 роки тому
README.md Simplify message building and add reply method 5 роки тому
build.gradle.kts 0.2.1 (mainly to test travis) 5 роки тому
gradlew Make gradlew executable 5 роки тому
gradlew.bat Initial import, various supporting classes. 5 роки тому

README.md

KtIrc

Build Status Codacy Badge codecov Download

KtIrc is a Kotlin JVM library for connecting to and interacting with IRC servers. It is still in an early stage of development.

Setup

KtIrc is published to JCenter, so adding it to a gradle build is as simple as:

repositories {
    jcenter()
}

dependencies {
    implementation("com.dmdirc:ktirc:<VERSION>")
}

Usage

The main interface for interacting with KtIrc is the IrcClientImpl class. A simple bot might look like:

with(IrcClientImpl(Server("my.server.com", 6667), Profile("nick", "realName", "userName"))) {
    onEvent { event ->
        when (event) {
            is ServerWelcome -> sendJoin("#ktirc")
            is MessageReceived ->
                if (event.message == "!test")
                    reply(event, "Test successful!")
        }
    }
    connect()
}

Contributing

Contributing is welcomed and encouraged! Please try to add unit tests for new features, and maintain a code style consistent with the existing code.

Licence

The code in this repository is released under the MIT licence. See the LICENCE file for more info.