All Projects → jagrosh → Discordipc

jagrosh / Discordipc

Licence: apache-2.0
Connect locally to the Discord client using IPC for a subset of RPC features like Rich Presence and Activity Join/Spectate

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Discordipc

Ipcinvoker
A IPC Invoker for Android Development.
Stars: ✭ 176 (+166.67%)
Mutual labels:  rpc, ipc
metacom
RPC communication protocol for Metarhia stack 🔌
Stars: ✭ 42 (-36.36%)
Mutual labels:  ipc, rpc
Ether1
Official Go implementation of The Etho Protocol
Stars: ✭ 41 (-37.88%)
Mutual labels:  ipc, rpc
Shadesmar
Fast C++ IPC using shared memory (with msgpack)
Stars: ✭ 126 (+90.91%)
Mutual labels:  rpc, ipc
csgo richpresence
Discord Rich Presence support for Counter-Strike: Global Offensive!
Stars: ✭ 16 (-75.76%)
Mutual labels:  ipc, rpc
Jstp
Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
Stars: ✭ 132 (+100%)
Mutual labels:  rpc, ipc
qtalk-go
versatile stream IO and RPC based IPC stack for Go
Stars: ✭ 29 (-56.06%)
Mutual labels:  ipc, rpc
Multirpc
A Discord rich presence manager app with a cool GUI and support for custom status and multiple profiles
Stars: ✭ 94 (+42.42%)
Mutual labels:  rpc, discord
electron-ipc-bus
An IPC bus for Electron.
Stars: ✭ 23 (-65.15%)
Mutual labels:  ipc, rpc
InterProcessCommunication
Inter-process Communication
Stars: ✭ 11 (-83.33%)
Mutual labels:  ipc, rpc
Sgf
This is a Smart Game Foundation (Not Framework)
Stars: ✭ 122 (+84.85%)
Mutual labels:  rpc, ipc
Rpc Thunderdome
A comparison between Proteus RPC and other commonly used RPC frameworks
Stars: ✭ 22 (-66.67%)
Mutual labels:  rpc, ipc
Switchrpc
Discord Rich Presence integration for Nintendo Switch.
Stars: ✭ 116 (+75.76%)
Mutual labels:  rpc, discord
Discordrpcmaker
Cross-platform Discord Rich Presence Maker, WITH BUTTONS!
Stars: ✭ 165 (+150%)
Mutual labels:  rpc, discord
Java Discord Rpc
Java bindings for https://github.com/discordapp/discord-rpc (using JNA)
Stars: ✭ 104 (+57.58%)
Mutual labels:  rpc, discord
coreipc
WCF-like service model API for communication over named pipes and TCP. .NET and node.js clients.
Stars: ✭ 22 (-66.67%)
Mutual labels:  ipc, rpc
Discordrpcvs
An extension for Visual Studio 2017 that enables Discord Rich Presence.
Stars: ✭ 77 (+16.67%)
Mutual labels:  rpc, discord
Discord Rich Presence Tool
A C++/Qt program that lets you fill in your own custom Discord Rich Presence information for games and activities away from the PC.
Stars: ✭ 91 (+37.88%)
Mutual labels:  rpc, discord
sirdez
Glorious Binary Serialization and Deserialization for TypeScript.
Stars: ✭ 20 (-69.7%)
Mutual labels:  ipc, rpc
Androidcomponentplugin
Android上简单实现四大组件的插件化,供学习使用
Stars: ✭ 316 (+378.79%)
Mutual labels:  ipc, activity

version license

DiscordIPC

Connect locally to the Discord client using IPC for a subset of RPC features like Rich Presence and Activity Join/Spectate

Features

  • Setting Rich Presence
  • Listen for Join, Spectate, and Join-Request events
  • Detect and specify priority for client build (Stable, PTB, Canary)
  • 100% Java

Getting Started

First you'll need to add this project as a dependency. If you're using maven:

  <dependency>
    <groupId>com.jagrosh</groupId>
    <artifactId>DiscordIPC</artifactId>
    <version>LATEST</version>
  </dependency>
  <repository>
    <id>central</id>
    <name>bintray</name>
    <url>http://jcenter.bintray.com</url>
  </repository>

With gradle:

dependencies {
    compile 'com.jagrosh:DiscordIPC:LATEST'
}

repositories {
    jcenter()
}

Example

Quick example, assuming you already have a GUI application

IPCClient client = new IPCClient(345229890980937739L);
client.setListener(new IPCListener(){
    @Override
    public void onReady(IPCClient client)
    {
        RichPresence.Builder builder = new RichPresence.Builder();
        builder.setState("West of House")
            .setDetails("Frustration level: Over 9000")
            .setStartTimestamp(OffsetDateTime.now())
            .setLargeImage("canary-large", "Discord Canary")
            .setSmallImage("ptb-small", "Discord PTB")
            .setParty("party1234", 1, 6)
            .setMatchSecret("xyzzy")
            .setJoinSecret("join")
            .setSpectateSecret("look");
        client.sendRichPresence(builder.build());
    }
});
client.connect();

Other Examples

Official Discord-RPC Bindings

The official RPC bindings can be found here: https://github.com/discordapp/discord-rpc

A Java wrapper for the official bindings is available here: https://github.com/MinnDevelopment/Java-DiscordRPC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].