forgot these ones too

This commit is contained in:
Joonas 2023-02-09 19:40:33 +02:00
parent d5eb059b7a
commit 5be02b7164
2 changed files with 6 additions and 6 deletions

View File

@ -24,11 +24,9 @@ const command = {
case "fetch": {
const data = await fetch(
`https://dropmail.me/api/graphql/gj3489g389gj4wegj3qj890fg23j89j82g?query=query%20(%24id%3A%20ID!)%20%7Bsession(id%3A%24id)%20%7B%20addresses%20%7Baddress%7D%2C%20mails%7BrawSize%2C%20fromAddr%2C%20toAddr%2C%20downloadUrl%2C%20text%2C%20headerSubject%7D%7D%20%7D&variables=%7B%22id%22%3A%22${splitted[3]
.replaceAll("?", "")
.replaceAll("/", "")
.replaceAll("\\", "")
.replaceAll("&", "")}%22%7D`
`https://dropmail.me/api/graphql/gj3489g389gj4wegj3qj890fg23j89j82g?query=query%20(%24id%3A%20ID!)%20%7Bsession(id%3A%24id)%20%7B%20addresses%20%7Baddress%7D%2C%20mails%7BrawSize%2C%20fromAddr%2C%20toAddr%2C%20downloadUrl%2C%20text%2C%20headerSubject%7D%7D%20%7D&variables=%7B%22id%22%3A%22${encodeURIComponent(
splitted[3]
)}%22%7D`
)
.then((res) => res.json())
.then((data) => data.data.session)

View File

@ -6,7 +6,9 @@ const command = {
run: async (client, msg, splitted) => {
const data = await fetch(
`https://api.ivr.fi/v2/twitch/user?login=${
splitted[2] ? splitted[2] : msg.displayName
splitted[2]
? encodeURIComponent(splitted[2])
: encodeURIComponent(msg.displayName)
}`
)
.then((res) => res.json())