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

Function get_random_one_word

wxapp/BREO.py:190–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 return auth_info["token"]
189
190def get_random_one_word():
191 try:
192 response = requests.get("https://uapis.cn/api/say")
193 if response.status_code == 200:
194 return response.text.strip()
195 else:
196 return "无法获取一言"
197 except Exception as e:
198 print(f"获取一言时出错: {e}")
199 return "无法获取一言"
200
201def get_proclamation():
202 primary_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt"

Callers 1

comment_postFunction · 0.85

Calls 2

printFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected