-
Notifications
You must be signed in to change notification settings - Fork 0
/
school.js
33 lines (28 loc) · 976 Bytes
/
school.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
const DiscordRPC = require('discord-rpc'),
log = require("fancy-log");
const keys = require('./keys.json');
const rpc = new DiscordRPC.Client({ transport: keys.rpcTransportType }),
appClient = keys.appClientID,
largeImageKey = keys.imageKeys.large,
smallImageKey = keys.imageKeys.small;
// const newYear = new Date(),
// startTime = new Date();
rpc.on('ready', () => {
log(`Connected to Discord! (${appClient})`);
//var newYear = new Date();
// newYear.setTime(23*1000*60*60);
// newYear.setFullYear(2018, 0, 1);
// log(`time set to: (${newYear})`);
rpc.setActivity({
details: "Watching Danny Phantom",
state: "Identity Crisis",
// startTimestamp: startTime,
// endTimestamp: newYear,
largeImageKey: largeImageKey,
smallImageKey: smallImageKey,
largeImageText: undefined,
smallImageText: "Going ghost",
instance: true,
});
});
rpc.login(appClient).catch(log.error);