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) {