aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorChristopher Gwynn <[email protected]>2021-02-24 21:11:28 -0500
committerChristopher Gwynn <[email protected]>2021-02-24 21:11:28 -0500
commit1e891e9cd5a81a9579d7c0f64fc6670715d787f9 (patch)
tree44c508486e12e98758d52df5b66962946f214a92 /index.js
parentbetter health updates (diff)
downloadwizard101-rpc-1e891e9cd5a81a9579d7c0f64fc6670715d787f9.tar.xz
wizard101-rpc-1e891e9cd5a81a9579d7c0f64fc6670715d787f9.zip
update README.md
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index 51d08d4..e32327c 100644
--- a/index.js
+++ b/index.js
@@ -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;