Auxority / galaxy-life-rpc

A discord rich presence for the Galaxy Life game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Galaxy Life - Discord Rich Presence

Hi there, I thought I would make a quick rich presence to check the status of the galaxy life servers.

Usage

To run this project you'll need a few things.

  1. You'll need to install Node.JS (from here)

Which Node.JS version to download

  • If you are familiar with git clone, you can skip steps 2 and 3.
  1. 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.

Showing where to download the repository as a zip file

  1. You'll need to unzip the downloaded file.

Showing how to unzip the file

  1. Open the unzipped folder.

The contents of the unzipped folder

  1. Copy the .env.example file and rename it to .env

The new .env file

  1. Visit the developer portal by clicking this link

The developer portal

  1. Create a new application by clicking the "New Application" button. Give it any name you like.

Creating a new application

  1. Open your newly created application

Open the new application

  1. Copy the application id. This should match with the number shown in the address bar of your browser.

Where to find your application id

  1. Open the .env file and replace YOUR_CLIENT_ID_HERE with the application id you just copied. Make sure that this is still prefixed with CLIENT_ID= after you have pasted your application id. So it would end up looking something like this: CLIENT_ID=1011101101110111011

  2. Save the .env file

  3. Go back to the developer portal (see step 5)

  4. Open the rich presence page.

  1. 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 and starling-scared. The images have to be at least 512x512 pixels.

    If you want to use the images I used, you can download them here:

  1. 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.

How to open a terminal

Your terminal might look something like this:

A cmd terminal

  1. Run npm install in the terminal to install all required packages.

Installing npm packages

  1. Make sure that discord is open.

  2. Run npm start in your terminal to start the rich presence.

About

A discord rich presence for the Galaxy Life game.


Languages

Language:TypeScript 99.1%Language:Shell 0.9%