This is a Discord Rich Presence client that displays the time left until the release of Tears of the Kingdom.
Before you can run this program, you need to have the following installed:
- Node.js (v14.0.0 or later)
- Clone this repository or download the ZIP file and extract its contents.
- Open a terminal or command prompt and navigate to the project directory.
- Install the required dependencies by running the following command:
npm install discord-rich-presence
- Set up the Discord application by following these steps:
- Go to the Discord Developer Portal.
- Click on "New Application" and give it a name.
- Click on "Create" to create the application.
- Make sure the application is named "the waiting game".
- Under "Rich Presence", click on "Art Assets" and upload the
totk.png
andclock.png
files from theassets
folder. - Note down the "Client ID" at the top of the page.
- Replace the
clientId
variable inconfig.json
, which is stored in theassets
folder with the client ID you just noted down. - Set the format of the remaining time as you wish. Look down below for more information on available formats.
- Run the program by executing the following command:
node rpc.js
That's it! The TOTK Countdown RPC should now be running and displaying your Rich Presence status in Discord.
TOTK-Countdown-RPC supports a few formats to display the remaining time as. See the list below for info:
default
-> Displays the remainder as20d 22h 13m 49s
segmented
-> Displays the remainder as20:22:13:49
segmented2
-> Displays the remainder as20d:22h:13m:49s
segmented3
-> Displays the remainder as20-22-13-49
dayFocused
-> Displays the remainder asOnly 20 days left!
Huge shoutout to EnK_ for refactoring the code! The amount of bloat this code had was real before they went over it entirely.
Additionally, thanks to the following resources:
- OpenAI For offering help writing and understanding the original code through the use of ChatGPT
- Discord Developer Portal for information on setting up Discord Rich Presence
- npm for the
discord-rpc
module, used in a previous version of this project - npm for the
discord-rich-presence
module used in this project - GitHub for hosting this project
- Nintendo for a legenedary up-and-coming Zelda title.