Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CruelDev69 committed Jun 11, 2022
1 parent a05ac41 commit 917f329
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"id": "",
"secret": ""
}
35 changes: 35 additions & 0 deletions index.js
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});
34 changes: 34 additions & 0 deletions package.json
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"
}
4 changes: 4 additions & 0 deletions setup.bat
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
4 changes: 4 additions & 0 deletions start.bat
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 .

0 comments on commit 917f329

Please sign in to comment.