From adfb15eb30ed8c4f9b66e6f19e56784784803d3c Mon Sep 17 00:00:00 2001 From: Ragnar Lothbrok Date: Sat, 2 Jul 2022 14:27:07 +0100 Subject: [PATCH] Update Trakt.js --- Trakt.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Trakt.js b/Trakt.js index 014fba8..ddeb4b4 100644 --- a/Trakt.js +++ b/Trakt.js @@ -12,7 +12,7 @@ if (!fs.existsSync('./config.json')) { } // Fetching the data from config.json -const { clientId, clientSecret, oAuth, discordClientID } = require('./config.json'); +const { clientId, clientSecret, oAuth, discordClientId } = require('./config.json'); // Checks if the oAuth has expired and runs tokenExpired() function if it has if (Date.now() > oAuth.expires) { @@ -41,7 +41,7 @@ const spawnRPC = async () => { console.log(chalk.green.bold('Successfully connected to Discord!')); }); // Attempt to log in - await rpc.login({ clientId: discordClientID }); + await rpc.login({ clientId: discordClientId }); // Update status updateStatus(); @@ -111,7 +111,7 @@ async function questions() { }, { type: 'input', - name: 'discordClientID', + name: 'discordClientId', message: 'What is your Discord Client ID?' } ]).catch(() => { @@ -142,7 +142,7 @@ async function questions() { const arr = {}; arr.clientId = response.clientId; arr.clientSecret = response.clientSecret; - arr.discordClientID = response.discordClientID; + arr.discordClientId = response.discordClientId; try { await qTrakt.exchange_code(auth.oAuth, null);