修改自动米游币私聊api调用方式

This commit is contained in:
Wuyi无疑 2022-04-08 11:45:17 +08:00 committed by GitHub
parent 40bd69f6ba
commit a0874f0077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,8 +423,7 @@ async def daily_mihoyo_bbs_sign():
im = await mihoyo_coin(str(row[2]), str(row[8]))
logger.info(im)
try:
await hoshino_bot.call_api(api='send_private_msg',
user_id=row[2], message=im)
await hoshino_bot.send_private_msg(user_id=row[2], message=im)
except Exception:
logger.exception(f'{im} Error')
logger.info('已结束。')