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

Function hitokoto

backup/sysxc.js:392–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390 return encrypted;
391}
392async function hitokoto() { // 随机一言
393 try {
394 let options = {
395 url: 'https://v1.hitokoto.cn/',
396 headers: {}
397 };
398 //console.log(options);
399 let result = await httpRequest(options);
400 //console.log(result);
401 return result.hitokoto
402 } catch (error) {
403 console.log(error);
404 }
405}
406// 双平台log输出
407function DoubleLog(data) {
408 if ($.isNode()) {

Callers

nothing calls this directly

Calls 2

httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected