From 90d4745e088dd89aa9c1a4a1f822ae6c460db7dd Mon Sep 17 00:00:00 2001 From: Rongrong Date: Sun, 5 Nov 2023 19:46:07 +0800 Subject: [PATCH] feat: `/lang` & `/test` as "remote" commands Signed-off-by: Rongrong --- src/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index f0f1ed7ae4..548f84c8a8 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -138,11 +138,11 @@ async def pre(): bot.add_event_handler(partial(command.customization.cmd_activate_or_deactivate_subs, activate=False), events.NewMessage(pattern=construct_remote_command_matcher('/deactivate_subs'))) bot.add_event_handler(command.misc.cmd_lang, - events.NewMessage(pattern=construct_command_matcher('/lang'))) + events.NewMessage(pattern=construct_remote_command_matcher('/lang'))) bot.add_event_handler(command.misc.cmd_version, events.NewMessage(pattern=construct_command_matcher('/version'))) bot.add_event_handler(command.administration.cmd_test, - events.NewMessage(pattern=construct_command_matcher('/test'))) + events.NewMessage(pattern=construct_remote_command_matcher('/test'))) bot.add_event_handler(command.administration.cmd_user_info_or_callback_set_user, events.NewMessage(pattern=construct_command_matcher('/user_info'))) bot.add_event_handler(command.administration.cmd_set_option,