MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / getNotice

Function getNotice

gqftbz.js:818–835  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

816}
817
818async function getNotice() {
819 try {
820 let options = {
821 url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json`,
822 headers: { "User-Agent": "" },
823 },
824 result = await httpRequest(options);
825 if (!result || !("notice" in result)) {
826 options.url = `https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json`;
827 result = await httpRequest(options);
828 }
829 if (result && "notice" in result) {
830 DoubleLog(`${result.notice}`);
831 }
832 } catch (e) {
833 console.log(e);
834 }
835}
836async function hitokoto() {
837 // 随机一言
838 try {

Callers

nothing calls this directly

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected