discord fix missing function for resetting time.

This commit is contained in:
Peter 2021-07-14 11:27:54 +01:00
parent 803b8810f7
commit b9a47baa00
3 changed files with 10 additions and 2 deletions

View File

@ -75,6 +75,14 @@ exports.clearDetails = function(){
}
}
exports.resetTime = function(){
if(client){
activity.startTimestamp = new Date().getTime()
client.setActivity(activity)
logger.log('Reset the activity time!')
}
}
exports.shutdownRPC = function(){
if(!client) return
client.clearActivity()

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "vicariousnetworklauncher",
"version": "1.0.0",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "vicariousnetworklauncher",
"version": "1.0.0",
"version": "1.1.0",
"productName": "Vicarious Network Launcher",
"description": "Modded Minecraft Launcher",
"author": "Daniel Scalzi (https://github.com/VicaiousNetwork/)",