mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 22:30:02 +08:00
🎨 签到优化与配置修改
This commit is contained in:
@@ -8,7 +8,7 @@ from nonebot.adapters import Bot
|
||||
from nonebot.exception import ActionFailed
|
||||
from nonebot_plugin_alconna import UniMessage
|
||||
|
||||
from zhenxun.configs.config import NICKNAME, Config
|
||||
from zhenxun.configs.config import BotConfig, Config
|
||||
from zhenxun.configs.path_config import IMAGE_PATH
|
||||
from zhenxun.models.user_console import UserConsole
|
||||
from zhenxun.utils.image_utils import BuildImage
|
||||
@@ -58,7 +58,7 @@ class RedBagManager:
|
||||
try:
|
||||
await MessageUtils.build_message(
|
||||
[
|
||||
f"{NICKNAME}的节日红包过时了,一共开启了 "
|
||||
f"{BotConfig.nickname}的节日红包过时了,一共开启了 "
|
||||
f"{len(red_bag.open_user)}"
|
||||
f" 个红包,共 {sum(red_bag.open_user.values())} 金币\n",
|
||||
rank_image,
|
||||
@@ -92,7 +92,7 @@ class RedBagManager:
|
||||
rank_image = await festive_red_bag.build_amount_rank(rank_num, platform)
|
||||
return MessageUtils.build_message(
|
||||
[
|
||||
f"{NICKNAME}的节日红包过时了,一共开启了 "
|
||||
f"{BotConfig.nickname}的节日红包过时了,一共开启了 "
|
||||
f"{len(festive_red_bag.open_user)}"
|
||||
f" 个红包,共 {sum(festive_red_bag.open_user.values())} 金币\n",
|
||||
rank_image,
|
||||
|
||||
Reference in New Issue
Block a user