chore: do new design mockup
This commit is contained in:
1 parent
0365a0fb9a
commit
e4441c98e3
44 files changed
+2145
-2627
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import ky from 'ky';
|
||||
|
||||
const BANCHO_ENDPOINT = 'https://c.ez-pp.farm/';
|
||||
|
||||
export const ezppfarm = {
|
||||
ping: async (): Promise<number | undefined> => {
|
||||
try {
|
||||
const start = Date.now();
|
||||
const request = await ky(BANCHO_ENDPOINT);
|
||||
if (!request.ok) return undefined;
|
||||
const ping = Date.now() - start;
|
||||
return ping;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user