mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 08:41:29 +00:00
Make command dispatching process clearer
This commit is contained in:
@ -92,3 +92,11 @@ def get_command_name_separators():
|
||||
|
||||
def get_command_args_start_flags():
|
||||
return tuple(sorted(('[ \t\n]',) + config['command_args_start_flags'], reverse=True))
|
||||
|
||||
|
||||
def get_fallback_command():
|
||||
return config.get('fallback_command')
|
||||
|
||||
|
||||
def get_fallback_command_after_nl_processors():
|
||||
return config.get('fallback_command_after_nl_processors')
|
||||
|
Reference in New Issue
Block a user