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

Function hitokoto

gqftbz.js:836–848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

834 }
835}
836async function hitokoto() {
837 // 随机一言
838 try {
839 let options = {
840 url: "https://v1.hitokoto.cn/",
841 headers: {},
842 },
843 result = await httpRequest(options);
844 return result.hitokoto;
845 } catch (error) {
846 console.log(error);
847 }
848}
849// 双平台log输出
850function DoubleLog(data) {
851 if ($.isNode()) {

Callers

nothing calls this directly

Calls 2

httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected