icalingua-python-bot/module/hitokoto/__init__.py

5 lines
111 B
Python
Raw Normal View History

2023-12-30 15:16:50 +08:00
import requests
def hitokoto():
hitokoto = requests.get('https://v1.hitokoto.cn')
print(hitokoto.json)