mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 更换60秒读世界
api
This commit is contained in:
parent
1163d63a3a
commit
a4cb84e1df
@ -122,7 +122,8 @@
|
||||
"苍古",
|
||||
"乐团剑"
|
||||
],
|
||||
"渔获": [
|
||||
"「渔获」": [
|
||||
"「渔获」",
|
||||
"渔获",
|
||||
"鱼叉"
|
||||
],
|
||||
@ -396,9 +397,6 @@
|
||||
"黑缨枪",
|
||||
"史莱姆枪"
|
||||
],
|
||||
"「渔获」": [
|
||||
"「渔获」"
|
||||
],
|
||||
"以理服人": [
|
||||
"以理服人"
|
||||
],
|
||||
|
@ -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('七圣召唤卡牌列表发送失败,账号可能被风控')
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user