This script and series of tests can be used for testing the suite of RPC commands against a local client, or the GameBridge SDK to ensure that they all function properly.
- Clone the repo
- Go to your Discord applications and find your RPC-whitelisted application
- Make sure you create a bot user for your application, as you will need the Bot token for the token exchange
- Copy the necessary information into
utils/constants.py
- Run the script, inputting the port number at which the SDK or local client is listening. For local clients, open the console and search at the start of the logs for the port number. For the GameBridge SDK, input the port number returned from the initialize callback.