Giter Site home page Giter Site logo

drpc4k's Introduction

drpc4k Build Status Bintray

drpc4k (discord-rpc for Kotlin) is a project that aims to provide Kotlin bindings for discord-rpc

Current state of this project

Library is in early development, lacking extensive testing. Only Rich Presence is available at the moment.
Currently, the only working method of connecting is trough a JNA wrapper. I plan on making a pure Kotlin one too though.

Using this library

Make sure you enable the jcenter repository for releases. For snapshots, please add https://oss.jfrog.org/simple/libs-snapshot.

When using gradle (groovy or kts):

repositories {
    jcenter()
    /* for snapshots */
	maven("https://oss.jfrog.org/simple/libs-snapshot")
}

Then add the dependency:

dependencies {
    /* project dependencies */
    compile("be.bluexin:drpc4k:0.9")
}

Maven :

<dependency>
  <groupId>be.bluexin</groupId>
  <artifactId>drpc4k</artifactId>
  <version>0.9</version>
  <type>pom</type>
</dependency>

A list of versions can be found on bintray. Snapshot versions can be found on OJO.

You can also directly download it from Bintray.

Rich Presence

To use Discord Rich Presence, the easiest way is to use the Actor wrapper be.bluexin.drpc4k.jna.RPCActor. It will handle everything using lightweight Kotlin Coroutines. An example usage can be found at src/test/kotlin/JnaExampleActor.kt.

drpc4k's People

Contributors

bluexin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.