更新 __init__.py
This commit is contained in:
parent
c963bf6afb
commit
e51c830a68
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Reference in a new issue