From 24cf2323a39d7bbad93eea9fc8b7a3ecb34b679f Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 25 Mar 2023 19:46:43 +0200 Subject: [PATCH] missed something --- commands/Info/new-chat.js | 2 -- commands/Info/view-session-history.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/Info/new-chat.js b/commands/Info/new-chat.js index 62012ee..527e39e 100644 --- a/commands/Info/new-chat.js +++ b/commands/Info/new-chat.js @@ -8,8 +8,6 @@ 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`) diff --git a/commands/Info/view-session-history.js b/commands/Info/view-session-history.js index ff85441..d165952 100644 --- a/commands/Info/view-session-history.js +++ b/commands/Info/view-session-history.js @@ -34,7 +34,7 @@ module.exports = { const response = await axios.get(`http://${process.env.INTERNAL_IP}:8008/api/chat/` + session2, { headers, auth: { - username: process.env.USER, + username: process.env.USERNAME, password: process.env.PASS } });