discord fix missing function for resetting time.
This commit is contained in:
parent
803b8810f7
commit
b9a47baa00
@ -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(){
|
exports.shutdownRPC = function(){
|
||||||
if(!client) return
|
if(!client) return
|
||||||
client.clearActivity()
|
client.clearActivity()
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vicariousnetworklauncher",
|
"name": "vicariousnetworklauncher",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vicariousnetworklauncher",
|
"name": "vicariousnetworklauncher",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"productName": "Vicarious Network Launcher",
|
"productName": "Vicarious Network Launcher",
|
||||||
"description": "Modded Minecraft Launcher",
|
"description": "Modded Minecraft Launcher",
|
||||||
"author": "Daniel Scalzi (https://github.com/VicaiousNetwork/)",
|
"author": "Daniel Scalzi (https://github.com/VicaiousNetwork/)",
|
||||||
|
Loading…
Reference in New Issue
Block a user