Remove the CNAM temporarily for privacy until I can come up with a better way of handling them

This commit is contained in:
Christopher Cookman 2023-08-18 20:30:21 -06:00
parent 4cb638a07b
commit dd62d29ac9
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -65,7 +65,7 @@ app.post('/sms', async (req, res) => {
hook.send({
content: out['text'],
files: out['images'],
username: cnam,
username: "MMS",
avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam.replaceAll(" ", "")}/${cnam.replaceAll(" ", "")}.png?s=500`)
})
} else { // It's an SMS
@ -73,7 +73,7 @@ app.post('/sms', async (req, res) => {
data.Message = decodeURIComponent(data.Message);
hook.send({
content: data.Message,
username: cnam,
username: "SMS",
avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam.replaceAll(" ", "")}/${cnam.replaceAll(" ", "")}.png?s=500`)
})
}