2023-11-22 11:34:40 -06:00
# SteamRPC
2023-11-22 12:03:16 -06:00
SteamRPC pulls your game and presence from Steam and puts it onto discord.
## Table of Contents
- [Setup ](#setup )
2023-11-22 12:23:34 -06:00
- [Downloading the repository ](#downloading-the-repository )
2023-11-22 12:03:16 -06:00
- [Steam Setup ](#steam-setup )
2023-11-22 12:06:23 -06:00
- [Running it ](#running-it )
2023-11-22 12:03:16 -06:00
- [Notes ](#notes )
2023-11-30 09:46:25 -06:00
- [To-Do ](#to-do )
2023-11-22 12:03:16 -06:00
## Setup
2023-11-22 12:23:34 -06:00
### Downloading the repository
Simply run:
```bash
git clone https://codeberg.org/Bingus_Violet/SteamRPC
cd SteamRPC
```
2023-11-22 12:03:16 -06:00
In order for SteamRPC to run, you need to give it 2 environment variables. < br > Example:
```bash
2023-11-30 00:37:20 -06:00
STEAM_ID=12345678 node index.js
2023-11-22 12:03:16 -06:00
```
2023-11-30 09:44:42 -06:00
Below you can find documentation for how to get your Steam ID.
2023-11-22 12:03:16 -06:00
### Steam Setup
Getting your Steam ID is a much simpler process.
1. Navigate to Steam and login if you haven't already (You can do this both in the app or on the web)
2. Hover on your username at the top and go to "friends"
3. Navigate to the "Add a friend page" on the left
4. Copy your friend code
Now replace the STEAM_ID environment variable with the SteamID you just got.
Although this isn't nessacarily the most sophisticated method for getting your steam ID, its the one I find the easiest.
2023-11-22 12:06:23 -06:00
### Running it
Lastly, all you need to do, is open a terminal and run
```
2023-12-03 22:15:48 -06:00
node index.js
2023-11-22 12:06:23 -06:00
```
2023-12-03 22:15:48 -06:00
2023-11-22 12:06:23 -06:00
There are also option environment variables:
- `UPDATE_TIME=[number of seconds to update]`
2023-12-03 16:20:44 -06:00
- **this HAS TO BE over 30 seconds**
2023-12-03 22:15:48 -06:00
- `STEAM_ID=[your_steam_id]`
- Prevents the program from prompting you for your steam ID
2023-11-22 12:06:23 -06:00
2023-11-22 12:23:34 -06:00
If everything is setup properly, it should look something like this!:< br >
![Alt text ](docs/examples/image.png )< br >
![Alt text ](docs/examples/image-1.png )< br >
![Alt text ](docs/examples/image-2.png )< br >
![Alt text ](docs/examples/image-3.png )< br >
2023-11-22 12:03:16 -06:00
## Notes
2023-11-30 09:46:25 -06:00
This project was never meant to be public, but I decided there was no reason not to. Please do report any problems you encounter, and if there are any issues with the documentation, please let me know!
## To-Do
- [x] Pull images from steam directly
- [x] Show profile picture and username as small Image
- [ ] Allow Steam Icon Overrides
- [ ] Add config
- [ ] Allow more configurable options