mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 21:00:21 +08:00
🎨 代码优化
This commit is contained in:
@@ -298,7 +298,7 @@ async def _(
|
||||
try:
|
||||
await MessageUtils.build_message(
|
||||
[
|
||||
f"{BotConfig.nickname}的节日红包过时了,一共开启了 "
|
||||
f"{BotConfig.self_nickname}的节日红包过时了,一共开启了 "
|
||||
f"{len(festive_red_bag.open_user)}"
|
||||
f" 个红包,共 {sum(festive_red_bag.open_user.values())} 金币\n",
|
||||
rank_image,
|
||||
@@ -314,10 +314,10 @@ async def _(
|
||||
except JobLookupError:
|
||||
pass
|
||||
await group_red_bag.add_red_bag(
|
||||
f"{BotConfig.nickname}的红包",
|
||||
f"{BotConfig.self_nickname}的红包",
|
||||
amount,
|
||||
num,
|
||||
BotConfig.nickname,
|
||||
BotConfig.self_nickname,
|
||||
FESTIVE_KEY,
|
||||
_uuid,
|
||||
platform=session.platform,
|
||||
@@ -335,7 +335,7 @@ async def _(
|
||||
)
|
||||
await MessageUtils.build_message(
|
||||
[
|
||||
f"{BotConfig.nickname}发起了节日金币红包\n金额: {amount}\n数量: {num}\n",
|
||||
f"{BotConfig.self_nickname}发起了节日金币红包\n金额: {amount}\n数量: {num}\n",
|
||||
image_result,
|
||||
]
|
||||
).send(target=target, bot=bot)
|
||||
|
||||
Reference in New Issue
Block a user