diff --git a/config.toml b/config.toml index 25c55be..f813f5a 100644 --- a/config.toml +++ b/config.toml @@ -3,7 +3,7 @@ # NapCat WebSocket 配置 [napcat_ws] -uri = "ws://114.66.61.199:3001" +uri = "ws://127.0.0.1:3001" # WebSocket 连接地址 token = "KoIAF.mcEHzxrPYF" # 重连间隔(秒) @@ -19,7 +19,7 @@ token = "" # Bot 基础配置 [bot] # 命令前缀列表 -command = ["。"] +command = ["/"] # 是否忽略自己的消息 ignore_self_message = true # 权限不足时的消息 diff --git a/plugins/web_parser/parsers/bili.py b/plugins/web_parser/parsers/bili.py index 7e8c472..bd98358 100644 --- a/plugins/web_parser/parsers/bili.py +++ b/plugins/web_parser/parsers/bili.py @@ -199,8 +199,8 @@ class BiliParser(BaseParser): # 检查视频时长 video_message: Union[str, MessageSegment] direct_url = None - if data['duration'] > 1200: # 20分钟 = 1200秒 - video_message = "视频时长超过20分钟,不进行解析。" + if data['duration'] > 7200: # 2小时 = 7200秒 + video_message = "视频时长超过2小时,不进行解析。" else: # 构建完整的B站视频URL video_url = f"https://www.bilibili.com/video/{data.get('bvid', '')}" diff --git a/requirements.txt b/requirements.txt index 3e72413..2e0f0d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,74 +1,89 @@ -aiohappyeyeballs==2.6.1 -aiohttp==3.13.3 -aiomysql==0.2.0 -aiosignal==1.4.0 -annotated-types==0.7.0 -anyio==4.12.1 -astroid==4.0.3 -attrs==25.4.0 -beautifulsoup4==4.14.3 -bs4==0.0.2 -cachetools==6.2.4 -certifi==2026.1.4 +aiocontextvars==0.2.2 +aiodns==4.0.0 +AppKit==0.2.8 +argcomplete==3.6.3 +asana_kazoo==2.0.8dev +BeautifulSoup==3.2.2 +brotli==1.2.0 +brotlicffi==1.2.0.0 +cchardet==2.1.7 cffi==2.0.0 -charset-normalizer==3.4.4 -colorama==0.4.6 -coverage==7.13.1 -cryptography==46.0.3 -dill==0.4.0 -docker==7.1.0 -docopt==0.6.2 -frozenlist==1.8.0 -greenlet==3.3.0 -h11==0.16.0 -httpcore==1.0.9 -httpx==0.27.0 -idna==3.11 -iniconfig==2.3.0 -isort==7.0.0 -Jinja2==3.1.6 -librt==0.7.7 -loguru==0.7.3 -MarkupSafe==3.0.3 -mccabe==0.7.0 -multidict==6.7.0 -mypy==1.19.1 -mypy_extensions==1.1.0 -orjson==3.11.5 -packaging==25.0 -pathspec==1.0.3 -pillow==12.1.0 -pipreqs==0.4.13 -platformdirs==4.5.1 -playwright==1.57.0 -pluggy==1.6.0 -propcache==0.4.1 -psutil==5.9.8 -pycparser==2.23 -pydantic==2.12.5 -pydantic_core==2.41.5 -pyee==13.0.0 -Pygments==2.19.2 -pylint==4.0.4 -pytest==9.0.2 -pytest-asyncio==1.3.0 -pytest-cov==7.0.0 -pytest-mock==3.15.1 -redis==7.1.0 -requests==2.32.5 -setuptools==80.9.0 -sniffio==1.3.1 -soupsieve==2.8.1 -toml==0.10.2 -tomlkit==0.13.3 -types-cachetools==6.2.0.20251022 -types-docker==7.1.0.20251202 -types-paramiko==4.0.0.20250822 -types-requests==2.32.4.20260107 -typing-inspection==0.4.2 -typing_extensions==4.15.0 -urllib3==2.6.3 -watchdog==6.0.0 -websockets==16.0 -yarg==0.1.10 -yarl==1.22.0 +chardet==6.0.0.post1 +click==8.3.1 +concurrencytest==0.1.4 +ConfigParser==7.2.0 +contextlib2==21.6.0 +curio==1.6 +curl_cffi==0.14.0 +Cython==3.2.4 +cython==3.2.4 +defusedxml==0.7.1 +Django==6.0.2 +dl==0.1.0 +docutils==0.22.4 +email_validator==2.3.0 +etcd3==0.12.0 +eval_type_backport==0.3.1 +eventlet==0.40.4 +exceptiongroup==1.3.1 +fastapi==0.134.0 +filelock==3.24.3 +flake8==7.3.0 +gunicorn==25.1.0 +h2==4.3.0 +html5lib==1.1 +HTMLParser==0.0.2 +hypothesis==6.151.9 +importlib_resources==6.5.2 +ini2toml==0.15 +ipykernel==7.2.0 +ipython==9.10.0 +ipywidgets==8.1.8 +jnius==1.1.0 +js==1.0 +keyring==25.7.0 +lxml_html_clean==0.4.4 +mask==1.0.0 +matplotlib==3.10.8 +mod==0.3.0 +multiprocess==0.70.19 +nacl==0.0.0 +olefile==0.47 +outcome==1.3.0.post0 +ox_profile==0.2.14 +paramiko==4.0.0 +pexpect==4.9.0 +pip_api==0.0.34 +pkg1==0.0.3 +pox==0.3.7 +protobuf==7.34.0 +pudb==2025.1.5 +pybreaker==1.4.1 +pycryptodome_test_vectors==1.0.22 +pyenchant==3.3.0 +PyInstaller==6.19.0 +pymongo==4.16.0 +pyodide==0.0.2 +PyOpenGL==3.1.10 +pyOpenSSL==25.3.0 +PyQt6==6.10.2 +PySide6==6.10.2 +python-dotenv==1.2.1 +python_bcrypt==0.3.2 +python_socks==2.8.1 +pywin32==311 +simplejson==3.20.2 +socksio==1.0.0 +speedups==1.4.0 +Sphinx==9.1.0 +sympy==1.14.0 +trove_classifiers==2026.1.14.14 +urllib3_secure_extra==0.1.0 +uvloop==0.22.1 +websocket_client==1.9.0 +Werkzeug==3.1.6 +winloop==0.5.0 +wmi==1.5.1 +xmlrpclib==1.0.1 +xx==3.3.2 +zope==5.13 diff --git a/web_static/changelog.html b/web_static/changelog.html new file mode 100644 index 0000000..9df7f06 --- /dev/null +++ b/web_static/changelog.html @@ -0,0 +1,205 @@ + + + + + + NEOBOT | Changelog + + + + + + + + + + + + + +
+
+ + +
+
PROJECT HISTORY
+

+ System
+ Evolution +

+

+ 记录每一次微小的改变,见证成长的轨迹。 +

+
+ + +
+
+ +
+ + +
+
+
+

v1.0.1

+ LATEST +
+
2026-3-1
+
+ +
+

+ "大fix" +

+
+ +
+ + +
+
    + +
  • + + ADD + + + 镜像表情包支持GIf +
  • + +
  • + + UPD + + + 优化了 Web Parser 的解析速度 +
  • + +
  • + + FIX + + + 修复了在某些特定网络环境下图片加载失败的问题,b站解析修复 +
  • + +
  • + + UPD + + + 支持多实现端连接(反向WS),此功能并不完善 +
  • + +
+
+
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/web_static/changelog_generator/generate.py b/web_static/changelog_generator/generate.py index 3403880..fb6f4b8 100644 --- a/web_static/changelog_generator/generate.py +++ b/web_static/changelog_generator/generate.py @@ -20,14 +20,14 @@ OUTPUT_FILE = "../changelog.html" # - content: 变更内容 changelogs = [ { - "version": "v1.0.0", + "version": "v1.0.1", "date": "2026-3-1", - "description": "引入了更多有趣的互动功能,并优化了系统稳定性。", + "description": "大fix", "changes": [ - {"type": "add", "content": "新增了天气查询功能,支持全国主要城市"}, - {"type": "update", "content": "优化了 Web Parser 的解析速度,不过b站的视频解析等待重做中"}, - {"type": "fix", "content": "修复了在某些特定网络环境下图片加载失败的问题"}, - {"type": "update", "content": "支持多实现端连接(反向WS),此功能并不完善,等待重做"} + {"type": "add", "content": "镜像表情包支持GIf"}, + {"type": "update", "content": "优化了 Web Parser 的解析速度"}, + {"type": "fix", "content": "修复了在某些特定网络环境下图片加载失败的问题,b站解析修复"}, + {"type": "update", "content": "支持多实现端连接(反向WS),此功能并不完善"} ]