-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
75 lines (64 loc) · 4.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// https://github.com/17teen
// Discord: 7teen#3868
// https://github.com/Vissage
// Discord Rich Presence
const RPC = require("discord-rpc");
const browser = typeof window !== 'undefined';
const rpc = new RPC.Client({ transport: browser ? 'websocket' : 'ipc' });
const chalk = require('chalk');
const settings = require('./settings.json');
const details = settings.details;
const state = settings.state;
const LIK = settings.largeImageKey;
const LIT = settings.largeImageText;
const SIK = settings.smallImageKey;
const SIT = settings.smallImageText;
const ID = settings.clientID;
rpc.on("ready", () => {
rpc.setActivity({
details: `${details}`,
state: `${state}`,
startTimestamp: new Date(),
largeImageKey: `${LIK}`,
largeImageText: `${LIT}`,
smallImageKey: `${SIK}`,
smallImageText: `${SIT}`
});
const title = String.raw`
░░▓▓▓▓████▓▓▒▒░░░░
17 ▒▒██████▓▓██████▒▒░░░░▒▒▒▒▒▒
░░██████████▓▓████▒▒ ░░░░
░░██████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ░░
▓▓████████▓▓▓▓▓▓▓▓████████░░ ░░░░
██████▓▓▓▓▓▓▓▓▓▓████▒▒ ░░░░░░░░░░
▒▒████████▓▓████▓▓
▒▒██████████████▓▓ ░░ 17
░░▓▓▓▓████████▓▓
░░░░██▓▓▓▓▓▓████▒▒
░░░░░░██▓▓▒▒▓▓▓▓▓▓▓▓ 17
░░░░░░░░▒▒▒▒▒▒▓▓████
░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒ Made by 7teen#3868
░░░░░░▒▒▒▒▓▓▒▒░░
░░░░▒▒▒▒▒▒▒▒▒▒
░░░░▒▒▒▒▒▒▒▒
░░▒▒▒▒▒▒▒▒
░░░░▒▒▒▒▒▒
░░▒▒▒▒▒▒░░ 17 >>> | Rich Presence Innitiated | <<<
░░▒▒▒▒▒▒ ^^^^^^^^^^^^^^^^^^^^^^^^
▒▒▒▒░░
░░▒▒
17 ▒▒▒▒
░░░░
▒▒░░
▒▒
▒▒
▒▒ 17
░░
░░
Logged in as: ${rpc.user.username}#${rpc.user.discriminator}
`;
console.log(chalk.cyan(title))
});
rpc.login({
clientId: `${ID}`,
})