enhancement(lint): Fix lint errors for src/commands/colbalt_api.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-02-25 19:43:55 +00:00 committed by GitHub
parent 88820fd5a4
commit 5883579361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,19 +37,16 @@ export default class Message implements Command {
let url = event.text.split("<")[1].split(">")[0];
console.log(event.text, url);
fetch(
"https://cobalt.saahild.com/",
{
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
url: url,
}),
fetch("https://cobalt.saahild.com/", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
)
body: JSON.stringify({
url: url,
}),
})
.then((d) => d.json())
.then((data) => {
console.debug(data);