MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getNotice

Function getNotice

daily/weilai.js:96–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 .finally(() => $.done());
95
96async function getNotice() {
97 try {
98 let options = {
99 url: `https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json`,
100 headers: {
101 "User-Agent": defaultUserAgent,
102 },
103 timeout:3000
104 }
105 let {
106 data: res
107 } = await axios.request(options);
108 $.log(res)
109 return res
110 } catch (e) {}
111
112}

Callers 1

weilai.jsFile · 0.70

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected