Hi there, I thought I would make a quick rich presence to check the status of the galaxy life servers.
To run this project you'll need a few things.
- You'll need to install Node.JS (from here)
- If you are familiar with git clone, you can skip steps 2 and 3.
- You'll need to download this repository as a zip file. You can do so by clicking here or by using the buttons provided by GitHub as shown in the image.
- You'll need to unzip the downloaded file.
- Open the unzipped folder.
- Copy the
.env.example
file and rename it to.env
- Visit the developer portal by clicking this link
- Create a new application by clicking the "New Application" button. Give it any name you like.
- Open your newly created application
- Copy the application id. This should match with the number shown in the address bar of your browser.
-
Open the .env file and replace
YOUR_CLIENT_ID_HERE
with the application id you just copied. Make sure that this is still prefixed withCLIENT_ID=
after you have pasted your application id. So it would end up looking something like this:CLIENT_ID=1011101101110111011
-
Save the .env file
-
Go back to the developer portal (see step 5)
-
Open the rich presence page.
-
Add the images of your choice, but make sure to give them the same names as shown in the example.
gl-logo-offline
,gl-logo-online
,starling-happy
andstarling-scared
. The images have to be at least 512x512 pixels.If you want to use the images I used, you can download them here:
- Open a terminal in the folder you have extracted. (see step 3) A simple way to to do this, is by typing
cmd
in this bar and pressing the Enter/Return key on your keyboard.
Your terminal might look something like this:
- Run
npm install
in the terminal to install all required packages.
-
Make sure that discord is open.
-
Run
npm start
in your terminal to start the rich presence.