code cleanup and removal of auth stuff

This commit is contained in:
Raven Scott
2023-04-07 20:54:46 +02:00
parent d8c69ba5fe
commit e3a6f6c664
4 changed files with 6 additions and 9 deletions

View File

@ -35,11 +35,7 @@ module.exports = {
// My chat GUI for Serge is locked down by basic auth in apache to safe guard from
// Users issuing mulitple jobs at a time until there is some built in way to do so.
const response = await axios.get(`http://${process.env.INTERNAL_IP}:8008/api/chat/${sessionID}`, {
headers,
auth: {
username: process.env.USERNAME,
password: process.env.PASS
}
headers
});
if (!response.data.questions) return interaction.editReply("You have no history in this session yet :) ");