From 50e9fbd8b7ce4cb72ffaca44aff1789a318cd5db Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 8 Nov 2020 01:09:59 +0800 Subject: [Update] --- ATRI/plugins/plugin_admin/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ATRI/plugins/plugin_admin') diff --git a/ATRI/plugins/plugin_admin/__init__.py b/ATRI/plugins/plugin_admin/__init__.py index e760ca9..7e19908 100644 --- a/ATRI/plugins/plugin_admin/__init__.py +++ b/ATRI/plugins/plugin_admin/__init__.py @@ -196,7 +196,7 @@ async def _(bot: Bot, event: Event, state: dict) -> None: await publicOpinion.finish(msg0) -trackError = on_command('track', permission=SUPERUSER) +trackError = on_command("track", permission=SUPERUSER) file_error = Path('.') / 'ATRI' / 'data' / 'data_Error' / 'error.json' @@ -235,12 +235,12 @@ async def _(bot: Bot, event: Event, state: dict) -> None: args = str(event.message) if args: - state['args'] = args + state['msg'] = args -@groupSendMessage.got('args', prompt='请告诉咱需要群发的内容~!') # type: ignore +@groupSendMessage.got('msg', prompt='请告诉咱需要群发的内容~!') # type: ignore async def _(bot: Bot, event: Event, state: dict) -> None: - msg = state['args'] + msg = state['msg'] group_list = await bot.get_group_list() sc_list = [] err_list = [] -- cgit v1.2.3