Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/mcdv/__init__.py
2020-06-13 20:43:43 +08:00

14 lines
No EOL
430 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import json
import requests
import re
async def mcdv():
url = 'https://bugs.mojang.com/rest/api/2/project/11901/versions'
q = requests.get(url)
w = json.loads(q.text)
f = []
for x in w[:]:
if x['archived'] == False:
s = x['name']
else:
pass
return('最新版:'+s+'\n数据来源于MoJira可能会比官方发布要早一段时间。信息仅供参考。')