From a1401529e37d73c40d63e86c132c5e3b1c1536ab Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 25 Mar 2023 19:44:57 +0200 Subject: [PATCH] fixing auth issues --- commands/Info/new-chat.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/Info/new-chat.js b/commands/Info/new-chat.js index 52ca5db..62012ee 100644 --- a/commands/Info/new-chat.js +++ b/commands/Info/new-chat.js @@ -8,18 +8,19 @@ module.exports = { private: true, run: async (client, interaction) => { const file = './cache/' + interaction.user.id - +console.log(process.env.USER) +console.log(process.env.PASS) unirest .post(`https://${process.env.PUBLIC_URL}/api/chat`) .headers({ 'Accept': 'application/json', 'Content-Type': 'application/json' }) .auth({ - user: process.env.USER, + user: process.env.USERNAME, pass: process.env.PASS, sendImmediately: true }) .then((response) => { - console.log(response) + // console.log(response) const obj = { id: response.body } jsonfile.writeFile(file, obj, function (err) {