diff --git a/app/assets/js/discordwrapper.js b/app/assets/js/discordwrapper.js index 10f47adb..2635452e 100644 --- a/app/assets/js/discordwrapper.js +++ b/app/assets/js/discordwrapper.js @@ -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() diff --git a/package-lock.json b/package-lock.json index b80f3405..63032308 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vicariousnetworklauncher", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 261f95c6..35c100c8 100644 --- a/package.json +++ b/package.json @@ -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/)",