This project integrates Discord Rich Presence (RPC) with the game osu! using Node.js and data from StreamCompanion.
- Node.js: Ensure you have Node.js version 16 or later installed.
- StreamCompanion: Download and install StreamCompanion from here.
-
Clone the repository:
git clone https://github.com/Netamaru/discord-rpc-osu.git cd discord-rpc-osu
-
Install dependencies:
npm install
-
Install PM2 globally:
npm install pm2 -g
-
Create a
.env
file in the root directory of the project and add the following variables:clientId= clientSecret= server=ws://localhost:20727/tokens
-
Get your
clientId
andclientSecret
from osu! OAuth Applications by creating an OAuth application.
-
Start osu! and disable Discord Rich Presence.
-
Open StreamCompanion.
-
Start the application using PM2:
pm2 start index.js
PM2 will automatically restart the application if any errors occur, which is useful for handling bugs that might still be present.
Feel free to contribute to the project by submitting issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for more details.