修改env读取手段

This commit is contained in:
2026-04-03 23:33:59 +08:00
parent 387dd3a0bb
commit fb3cc67b68
3 changed files with 58 additions and 30 deletions

View File

@@ -1,10 +1,11 @@
from nonebot import on_command
from nonebot.adapters.onebot.v11 import Bot, Event, GroupMessageEvent, PrivateMessageEvent
# Import config from __init__ to ensure it's loaded through NoneBot driver
from . import plugin_config as config
from .config import Config
from .commands import get_scope, check_access, room_store, points_service
config = Config()
async def check_tester(event: Event) -> bool:
"""Check if user is a tester."""