Archived
1
0
Fork 0

更新 __init__.py

This commit is contained in:
yzhh 2023-05-15 20:03:14 +08:00 committed by GitHub
parent c963bf6afb
commit e51c830a68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ async def _(msg: Bot.MessageSession):
res = await get_url(f'https://static-tweet.vercel.app/_next/data/{build_id}/{tweet_id}.json')
res_json = json.loads(res)
if 'notFound' in res_json:
await msg.finish('{tweet.message.not_found}')
await msg.finish(msg.locale.t('{tweet.message.not_found}'))
else:
if await check_bool(res_json['pageProps']['tweet']['text'], res_json['pageProps']['tweet']['user']['name'], res_json['pageProps']['tweet']['user']['screen_name']):
await msg.finish('https://wdf.ink/6OUp')