-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a05ac41
commit 917f329
Showing
6 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"id": "", | ||
"secret": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Requiring dependencies. | ||
const RPC = require("discord-rpc"); | ||
const client = new RPC.Client({transport: "ipc" }); // Other Options: Websocket | ||
const { id, secret } = require("./config.json"); | ||
|
||
// Customize your Presence | ||
const activity = { | ||
details: "Invite Vivre & Vivre Music Now.", | ||
assets: { | ||
large_image: "inshot_20211004_102237118", | ||
large_text: "Vivre", | ||
small_image: "vivre", | ||
small_text: "Vivre Music" | ||
}, | ||
buttons: [ | ||
{ | ||
"label": "Vivre", | ||
"url": "https://www.vivre.cf/invite" | ||
}, | ||
{ | ||
"label": "Vivre Music", | ||
"url": "https://www.vivre.cf/pages/vivre-music/invite" | ||
} | ||
], | ||
timestamps: {start: Date.now()}, | ||
instance: true | ||
}; | ||
|
||
client.on("ready", () => { | ||
console.log("Listening on https://www.itscruel.cf"); | ||
console.log("Made by Ahad#3257"); | ||
client.request("SET_ACTIVITY", {pid: process.pid, activity: activity}); | ||
}); | ||
|
||
client.login({clientId: id, clientSecret: secret}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"dependencies": { | ||
"discord-rpc": "^4.0.1" | ||
}, | ||
"name": "discord-rpc", | ||
"version": "1.0.0", | ||
"description": "Discord RPC Made By Ahad#3257", | ||
"main": "index.js", | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/CruelDev69/Discord-RPC.git" | ||
}, | ||
"keywords": [ | ||
"rich-presence", | ||
"discord", | ||
"github", | ||
"RPC", | ||
"ahad", | ||
"cruel", | ||
"vivre", | ||
"vivre-music", | ||
"cool-status" | ||
], | ||
"author": "Ahad#3257", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/CruelDev69/Discord-RPC/issues" | ||
}, | ||
"homepage": "https://github.com/CruelDev69/Discord-RPC#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
title Rich Presence Made By Ahad#3257 | ||
:START | ||
npm i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
title Rich Presence Made By Ahad#3257 | ||
:START | ||
node . |