diff --git a/events/messageCreate.js b/events/messageCreate.js index 4852f8d..cc2a416 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -128,7 +128,7 @@ export default async (client, cluster, worker, ipc, message) => { if (process.env.TEMPDIR !== "") { const filename = `${Math.random().toString(36).substring(2, 15)}.${result.name.split(".")[1]}`; await promises.writeFile(`${process.env.TEMPDIR}/${filename}`, result.file); - const imageURL = `${process.env.TMP_DOMAIN !== "" ? process.env.TMP_DOMAIN : "https://tmp.projectlounge.pw"}/${filename}`; + const imageURL = `${process.env.TMP_DOMAIN || "https://tmp.projectlounge.pw"}/${filename}`; await client.createMessage(message.channel.id, Object.assign({ embeds: [{ color: 16711680, diff --git a/utils/imageConnection.js b/utils/imageConnection.js index cffc3af..2583130 100644 --- a/utils/imageConnection.js +++ b/utils/imageConnection.js @@ -135,7 +135,7 @@ class ImageConnection { async getOutput(jobid) { const req = await fetch(`${this.httpurl}?id=${jobid}`, { headers: { - "Authentication": this.auth ? this.auth : undefined + "Authentication": this.auth || undefined } }); const contentType = req.headers.get("Content-Type");