()
| 816 | } |
| 817 | |
| 818 | async 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 | } |
| 836 | async function hitokoto() { |
| 837 | // 随机一言 |
| 838 | try { |
nothing calls this directly
no test coverage detected