diff options
| author | Christopher Gwynn <[email protected]> | 2021-02-24 21:11:28 -0500 |
|---|---|---|
| committer | Christopher Gwynn <[email protected]> | 2021-02-24 21:11:28 -0500 |
| commit | 1e891e9cd5a81a9579d7c0f64fc6670715d787f9 (patch) | |
| tree | 44c508486e12e98758d52df5b66962946f214a92 /index.js | |
| parent | better health updates (diff) | |
| download | wizard101-rpc-1e891e9cd5a81a9579d7c0f64fc6670715d787f9.tar.xz wizard101-rpc-1e891e9cd5a81a9579d7c0f64fc6670715d787f9.zip | |
update README.md
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ function setPresence() { } // Check if the game has been quit - if(logChunk.match(/GameClient::HandleQuit\(\)|Logout due to Away From Keyboard/) && activity) { + if(logChunk.match(/GameClient::HandleQuit\(\)|Logout due to Away From Keyboard/) && activity && settings.startup !== "none") { rpc.destroy(); process.exit(); } @@ -148,8 +148,8 @@ function connectDiscord() { rpc.once("ready", () => { console.log("Successfully connected to Discord!\nWizard101-rpc is ready! Information will be shown on your Discord profile on game startup or the next zone change."); clearInterval(reconnect); - rl.resume(); setPresence(); + rl.resume(); // Launch wiz if(settings.startup === "none") return; |