Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna authored Jul 26, 2021
1 parent 1c5f606 commit 3b2599c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var rpc = require("discord-rpc") //import discord-rpc
const client = new rpc.Client({ transport: 'ipc' }) //define "client"
const fetch = require("node-fetch") //define "fetch" (if u need)

const updatePresence = async () => {
client.request('SET_ACTIVITY', {
pid: process.pid,
activity : {
Expand All @@ -21,17 +19,10 @@ const updatePresence = async () => {
]
}
})
}


client.on('ready', () => {
console.log(" __________________________________________________________________________ ");
console.log("| |");
console.log("| The Discord Rich-Presence is now online |");
console.log("| |");
console.log("| <From: Luna-devv> |");
console.log("|__________________________________________________________________________|"); //Log output
console.log("ready"); //Log output
})
setInterval(updatePresence, 15000) //Update every 15 seconds

client.login({ clientId : "835069063360151552" }).catch(console.error); //ClientID

0 comments on commit 3b2599c

Please sign in to comment.