PyPyDance Discord RPC 2

This commit is contained in:
Natsumi
2021-09-13 12:38:54 +12:00
parent 62c846bb4d
commit 13b6a16804

View File

@@ -7441,7 +7441,7 @@ speechSynthesis.getVoices();
var videoName = '';
var videoLength = '';
var displayName = '';
var videoPos = 5; // video loading delay
var videoPos = 10; // video loading delay
if (typeof gameLog.displayName !== 'undefined') {
displayName = gameLog.displayName;
}
@@ -7796,11 +7796,13 @@ speechSynthesis.getVoices();
appId = '846232616054030376';
bigIcon = 'vr_dancing';
}
L.worldName = this.nowPlaying.name;
Discord.SetTimestamps(
Date.now(),
(this.nowPlaying.startTime + this.nowPlaying.length) * 1000
);
if (this.nowPlaying.playing) {
L.worldName = this.nowPlaying.name;
Discord.SetTimestamps(
Date.now(),
(this.nowPlaying.startTime + this.nowPlaying.length) * 1000
);
}
}
Discord.SetAssets(
bigIcon, // big icon