mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-09 05:25:53 +08:00
🎨 体力推送文案添加游戏名 (#637)
This commit is contained in:
parent
f1037c45fd
commit
b3112a744b
@ -51,7 +51,10 @@ async def notice_job():
|
|||||||
for BOT_ID in gss.active_bot:
|
for BOT_ID in gss.active_bot:
|
||||||
bot = gss.active_bot[BOT_ID]
|
bot = gss.active_bot[BOT_ID]
|
||||||
for user_id in result[bot_id]['direct']:
|
for user_id in result[bot_id]['direct']:
|
||||||
msg_list = [result[bot_id]['direct'][user_id]]
|
msg_list = [
|
||||||
|
'✅[原神] 推送提醒:\n',
|
||||||
|
result[bot_id]['direct'][user_id],
|
||||||
|
]
|
||||||
msg_list.append(MessageSegment.text)
|
msg_list.append(MessageSegment.text)
|
||||||
await bot.target_send(
|
await bot.target_send(
|
||||||
msg_list, 'direct', user_id, bot_id, '', ''
|
msg_list, 'direct', user_id, bot_id, '', ''
|
||||||
@ -59,7 +62,9 @@ async def notice_job():
|
|||||||
await asyncio.sleep(0.5)
|
await asyncio.sleep(0.5)
|
||||||
logger.info('[推送检查] 私聊推送完成')
|
logger.info('[推送检查] 私聊推送完成')
|
||||||
for gid in result[bot_id]['group']:
|
for gid in result[bot_id]['group']:
|
||||||
msg_list = []
|
msg_list = [
|
||||||
|
MessageSegment.text('✅[原神] 推送提醒:\n'),
|
||||||
|
]
|
||||||
for user_id in result[bot_id]['group'][gid]:
|
for user_id in result[bot_id]['group'][gid]:
|
||||||
msg_list.append(MessageSegment.at(user_id))
|
msg_list.append(MessageSegment.at(user_id))
|
||||||
msg = result[bot_id]['group'][gid][user_id]
|
msg = result[bot_id]['group'][gid][user_id]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user