A Discord Rich Presence integration for @42School.
- Download RP42 from the releases page, or build it yourself
- Create an API App on the Intranet: https://profile.intra.42.fr/oauth/applications/new
Alternatively, if you have Go installed:
go install github.com/alexandregv/RP42@latest
/!\ Do NOT share your API credentials to someone else, or on GitHub, etc. /!\
Run the app like this, using the credentials of your API App:
- Linux:
./RP42 -i CLIENT_ID -s CLIENT_SECRET &
- Windows:
RP42.exe -i CLIENT_ID -s CLIENT_SECRET
- MacOS:
./RP42 -i CLIENT_ID -s CLIENT_SECRET
On Linux, to run it in background as a service, create a file ~/.config/systemd/user/RP42.service
with this content:
[Unit]
Description=Discord Rich Presence for 42
[Service]
ExecStart=%h/.local/bin/RP42 -i <my-app-id> -s <my-app-secret>
Restart=always
[Install]
WantedBy=default.target
Then run systemctl --user start RP42
and systemctl --user status RP42
.
If you want to build RP42 yourself, follow these instructions:
- Clone the repo:
git clone https://github.com/alexandregv/RP42.git
- Compile:
make
for all distro, ormake linux
/make macos
/make windows
- Fork it (https://github.com/alexandregv/RP42/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- alexandregv/aguiot-- - creator and maintainer