Remove the CNAM temporarily for privacy until I can come up with a better way of handling them
This commit is contained in:
parent
4cb638a07b
commit
dd62d29ac9
4
index.js
4
index.js
|
@ -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`)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue