Skip to content
Snippets Groups Projects
Commit dac50a92 authored by Reviath's avatar Reviath
Browse files

Getting client id and client secret from config file.

parent 557335da
No related branches found
No related tags found
No related merge requests found
{
"client_secret": "YOUR_CLIENT_SECRET",
"client_id": "CLIENT_ID"
}
\ No newline at end of file
const RPC = require("discord-rpc");
const rpc = new RPC.Client({ transport:"ipc"});
const os = require('os');
const conf = require('./config.json')
let clientId= 'CLIENT_ID';
let clientSecret = 'CLIENT_SECRET';
let clientId= conf.client_id;
let clientSecret = conf.client_secret;
let totalmem = os.totalmem()/1024/1024/1000;
let freemem = os.freemem()/1024/1024/1000;
let usedmem= totalmem - freemem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment