Counter-Strike 2

Counter-Strike 2

Not enough ratings
How to get Discord Rich Presence in CS:GO
By uku
Display CSGO information as rich presence in discord. 100% VAC safe.
   
Award
Favorite
Favorited
Unfavorite
Introduction
This guide will help you through the installation of a script to show CS:GO info in your Discord Rich Presence.
It is compatible with Windows and Linux (may work on mac, not tested).
I tried to make it as easy as possible, if you need any help feel free to comment, I will try to answer your questions as quick as possible.

Installing Python and Node.js is REQUIRED, or else it won't work. Follow all the steps and everything should be fine.
Screenshots















Install Pyhton
Go to the Python download page[www.python.org] and download the latest version of Python.

Execute it and click Install Now.


Python is now installed!
Install Node.js
Download Node[nodejs.org], pick the LTS version, and choose the one matching your operating system.

When downloaded, execute it and click next until the installation is finished.
Donwload and Installation
Go to the GitHub page[github.com].

Click the green Download code button, and then Download ZIP.


Extract the downloaded ZIP file and open the extracted directory.
It should look like this:


Rename config.json.example to config.json and open it with a text editor (like notepad).
Its content should be like this:
{ "clientId": "561657394292195331", "steamWebAPIKey": "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ", "serverPort": 21812, "authToken": "Q79v5tcxVQ8u", "processCheckDelay": 10000, "teamSmallImage": true, "timeElapsedTotal": true }

Replace 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ with your Steam Web API key and save the file.


Open your csgo folder:

Open the csgo folder and then the cfg folder.
Paste here the gamestate_integration_discord.cfg file, that you can find in the extracted folder.


In the folder, press Shift + Right Click to open an option menu, and click Open PowerShell window here.


In the command prompt, type npm install and hit Enter:





If you want the script to start silently with your computer, proceed to the next section. Else continue reading here.

In the command prompt, type node index and hit Enter to start the program.
Now launch CS:GO, and you will see the rich presence show up on your profile!
Do not close the command prompt, or the program will stop.
Auto-start
In the command prompt you opened before, type npm install pm2 -g.

Windows
Enter npm install pm2-windows-startup -g to install the auto startup.
Then enter pm2-startup install to setup the autostart.
Enter pm2 start index.js --name "CSGO RichPresence" to start the program.
Finally enter pm2 save to save the autostart settings.
Everytime your OS starts up the process will run in the background and automatically display when needed.

Linux
Enter pm2 startup in your terminal. It may ask you to execute another command.
Enter pm2 start index.js --name "CSGO RichPresence" to start the program.
Finally enter pm2 save to save the autostart settings.
Everytime your OS starts up the process will run in the background and automatically display when needed.
1 Comments
2015 legend Jun 30, 2021 @ 11:20am 
Rated :Heartpix: