mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 12:06:45 +00:00
完成适配器化改造,所有上报数据统一、接口调用等都改成通过不同消息源的适配器来完成,插件和消息源的耦合
This commit is contained in:
15
config.py
15
config.py
@ -5,4 +5,19 @@ config = {
|
||||
'command_name_separators': ('->', '::', '/'), # Regex
|
||||
'command_args_start_flags': (',', ':', ',', ', ', ':', ': '), # Regex
|
||||
'command_args_separators': (',', ','), # Regex
|
||||
|
||||
'message_sources': [
|
||||
{
|
||||
'via': 'mojo_weixin',
|
||||
'login_id': 'rcdevtest',
|
||||
'superuser_id': 'richard_chien_0',
|
||||
'api_url': 'http://127.0.0.1:5001/openwx',
|
||||
},
|
||||
{
|
||||
'via': 'mojo_webqq',
|
||||
'login_id': '3281334718',
|
||||
'superuser_id': '1002647525',
|
||||
'api_url': 'http://127.0.0.1:5000/openqq',
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user