From 7672cd382a63f74a353bb424d74aedca037c0757 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 18 Aug 2023 20:14:16 -0600 Subject: [PATCH] aaaaaa --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2e5beef..c19ee23 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ app.post('/sms', async (req, res) => { content: out['text'], files: out['images'], username: cnam, - avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500`) + avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam.replaceAll(" ", "")}/${cnam.replaceAll(" ", "")}.png?s=500`) }) } else { // It's an SMS data.Message = data.Message.replaceAll("+", " "); @@ -73,7 +73,7 @@ app.post('/sms', async (req, res) => { hook.send({ content: data.Message, username: cnam, - avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500`) + avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam.replaceAll(" ", "")}/${cnam.replaceAll(" ", "")}.png?s=500`) }) } res.send("OK");