mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 13:56:08 +00:00
refactor: filter和ignore独立成新的cntfilter包
This commit is contained in:
@@ -4,7 +4,6 @@ from __future__ import annotations
|
||||
import re
|
||||
|
||||
from ...boot import app
|
||||
from ...boot import config as config_util
|
||||
from ...config import manager as cfg_mgr
|
||||
|
||||
|
||||
@@ -18,7 +17,7 @@ class SessionBanManager:
|
||||
self.ap = ap
|
||||
|
||||
async def initialize(self):
|
||||
self.banlist_mgr = await config_util.load_python_module_config(
|
||||
self.banlist_mgr = await cfg_mgr.load_python_module_config(
|
||||
"banlist.py",
|
||||
"res/templates/banlist-template.py"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user