From 9f4b91d2eb00252896e8d179c91d650af64ef8f9 Mon Sep 17 00:00:00 2001 From: zxrotwo002 <133394050+zxrotwo002@users.noreply.github.com> Date: Tue, 7 Apr 2026 02:19:25 +0200 Subject: [PATCH] Update README.md --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 002a7f3..613c80a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,31 @@ +# Installation +1. Follow the steps at https://docs.discord.com/developers/discord-social-sdk/getting-started +2. Download the Discord Social SDK Standalone +3. Add the DISCORD_SDK environment variable `export DISCORD_SDK=` +4. Clone this repo and compile the libraries ``` -export DISCORD_SDK= +git clone https://github.com/zxrotwo002/java-discord-sdk-wrapper +cd java-discord-sdk-wrapper ./export.sh -``` \ No newline at end of file +``` +5. Add the compiled libraries in out/lib to your system libraries or wherever your java application can access them: +``` +sudo cp libdiscord_partner_sdk.so /usr/lib +sudo cp libdiscord_bridge.so /usr/lib +``` +6. Add the `DiscordLib.jar` to your project +7. Initialize the Discord Social SDK +``` +DiscordBridge bridge = new DiscordBridge(); +bridge.init(); +bridge.setAdapter(); +bridge.start(); +``` +8. Send activity updates +``` +DiscordActivity activity = new DiscordActivityBuilder() + .name("Some name") + ... + .build; +``` +9. Keep your application alive with a `while(true)` or similar