🐛 更换60秒读世界api

This commit is contained in:
CMHopeSunshine 2022-12-04 00:09:34 +08:00
parent 1163d63a3a
commit a4cb84e1df
3 changed files with 5 additions and 7 deletions

View File

@ -122,7 +122,8 @@
"苍古",
"乐团剑"
],
"渔获": [
"「渔获」": [
"「渔获」",
"渔获",
"鱼叉"
],
@ -396,9 +397,6 @@
"黑缨枪",
"史莱姆枪"
],
"「渔获」": [
"「渔获」"
],
"以理服人": [
"以理服人"
],

View File

@ -370,6 +370,6 @@ async def _(bot: Bot, event: MessageEvent):
msg = '七圣召唤卡牌列表:'
for type, cards in result.items():
msg += f'{type}\n' + '\n'.join([' '.join(cards[i:i + 3]) for i in range(0, len(cards), 3)])
await card_wiki_list.send(msg)
await card_wiki_list.send(msg + '\n')
except ActionFailed:
await card_wiki_list.finish('七圣召唤卡牌列表发送失败,账号可能被风控')

View File

@ -30,7 +30,7 @@ news = on_command('早报', aliases={'今日早报', '今日新闻', '60s读世
async def _(event: MessageEvent, sub_id=CommandObjectID(), switch=CommandSwitch(), sub_time=CommandTime()):
if switch is None:
await news.send('60秒读世界新闻获取中请稍等...')
await news.finish(MessageSegment.image(file='https://api.03c3.cn/zb/'))
await news.finish(MessageSegment.image(file='https://api.emoao.com/api/60s'))
else:
sub_data = {
'sub_id': sub_id,
@ -101,7 +101,7 @@ async def send_news(sub_id: int, sub_type: str, extra_id: Optional[int]):
else:
api = 'send_group_msg'
data = {'group_id': sub_id}
data['message'] = MessageSegment.image(file='https://api.03c3.cn/zb/')
data['message'] = MessageSegment.image(file='https://api.emoao.com/api/60s')
await get_bot().call_api(api, **data)
logger.info('60秒读世界', '', {sub_type: sub_id}, '推送成功', True)
except Exception as e: