Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-09-26 21:11:01 +08:00 committed by GitHub
parent 1fceab064c
commit 82651652ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ async def _(msg: Bot.MessageSession, tweet: str):
if not res_json['data']:
await msg.finish(msg.locale.t('tweet.message.not_found'))
elif res_json['data']['__typename'] != "Tweet":
await msg.finish(f"https://twitter.com/{res_json['data']['user']['screen_name']}/status/{tweet_id}")
rickroll(msg)
else:
if await check_bool(res_json['data']['text'], res_json['data']['user']['name'],
res_json['data']['user']['screen_name']):