()
| 188 | return auth_info["token"] |
| 189 | |
| 190 | def 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 | |
| 201 | def get_proclamation(): |
| 202 | primary_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt" |
no test coverage detected