Skip to content

Commit

Permalink
feat: /lang & /test as "remote" commands
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <[email protected]>
  • Loading branch information
Rongronggg9 committed Nov 5, 2023
1 parent 4540e55 commit 90d4745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 90d4745

Please sign in to comment.