spinkacek.ga 🍡 spinkacek.deadfish.cz
This commit is contained in:
parent
159bd31323
commit
ac0824592b
@ -12,12 +12,12 @@ const autoSpinky: SRecord<[boolean, TextBasedChannel]> = {};
|
||||
|
||||
const contactSpinkServer = async (akce: string, id: string, nick: string = "", avatar: string | null = "") => {
|
||||
const options = `heslo=${process.env.spinkPass}&akce=${akce}&id=${id}&nick=${encodeURIComponent(nick)}&avatar=${encodeURIComponent(avatar ?? "")}`;
|
||||
return fetch(`https://spinkacek.ga/extapi.php?${options}`)
|
||||
return fetch(`https://spinkacek.deadfish.cz/extapi.php?${options}`)
|
||||
.then(r => r.text());
|
||||
};
|
||||
|
||||
const syncSpink = () => {
|
||||
fetch("https://spinkacek.ga/api/spinkacky")
|
||||
fetch("https://spinkacek.deadfish.cz/api/spinkacky")
|
||||
.then(r => r.json() as Promise<{ spinkacky: SRecord<Spinkackar>; }>)
|
||||
.then(d => {
|
||||
const data = d.spinkacky;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user