mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
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:
parent
88820fd5a4
commit
5883579361
1 changed files with 9 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue