fix: 修正占位符命名 YOUR_NAP CAT_HOST → YOUR_NAPCAT_HOST(去掉空格)

This commit is contained in:
Claw
2026-05-04 16:32:35 +08:00
parent 6b51154d42
commit d281bba937
16 changed files with 16 additions and 16 deletions

View File

@ -28,7 +28,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def delete_friend(user_id: int) -> dict:

View File

@ -19,7 +19,7 @@ import os
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
FILES_DIR = "YOUR_WORKSPACE_PATH/files"

View File

@ -13,7 +13,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def get_friend_list():

View File

@ -23,7 +23,7 @@ import os
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
FILES_DIR = "YOUR_WORKSPACE_PATH/files"
DEFAULT_GID = YOUR_GROUP_ID # Liquid Studio 群

View File

@ -13,7 +13,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def get_group_list():

View File

@ -23,7 +23,7 @@ import argparse
import requests
from datetime import datetime
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def get_group_msg_history(group_id: str, count: int) -> list[dict]:

View File

@ -28,7 +28,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def get_group_list():

View File

@ -41,7 +41,7 @@ import argparse
import requests
from datetime import datetime
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def api_call(endpoint: str, params: dict = None) -> dict:

View File

@ -42,7 +42,7 @@ except ImportError:
# === NapCat 回退 ===
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
SHARED_DIR = "YOUR_SHARED_DIR"
CONTAINER_FILES = "/app/files"
OCR_TIMEOUT = 60

View File

@ -27,7 +27,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def get_stranger_info(user_id):

View File

@ -23,7 +23,7 @@ import subprocess
import requests
TARGET_DIR = "YOUR_SHARED_DIR"
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
HISTORY_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".send_history.json")
SCRIPT_PATH = os.path.abspath(__file__)
GATEWAY_URL = "http://127.0.0.1:18789"

View File

@ -21,7 +21,7 @@ import sys
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
def send_like(user_id: int, times: int = 1) -> dict:

View File

@ -28,7 +28,7 @@ import requests
import os
# go-cqhttp HTTP API 地址(与 qqrebot 配置文件一致)
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
# 默认接收用户(管理员)
DEFAULT_USER = "YOUR_ADMIN_QQ"

View File

@ -15,7 +15,7 @@ import base64
import argparse
import requests
CQHTTP_URL = "http://YOUR_NAP CAT_HOST:25570"
CQHTTP_URL = "http://YOUR_NAPCAT_HOST:25570"
DEFAULT_GID = YOUR_GROUP_ID # Liquid Studio 群

View File

@ -98,6 +98,6 @@ subprocess.run(["python3", "YOUR_WORKSPACE_PATH/scripts/qq_send_file.py",
1. 消息尽量简洁QQ 消息太长可读性差
2. 不要滥用主动推送,避免打扰管理员
3. 正常回复由系统自动转发,**无需调用本脚本**
4. 连接失败时检查 go-cqhttp 是否在运行(`http://YOUR_NAP CAT_HOST:25570`
4. 连接失败时检查 go-cqhttp 是否在运行(`http://YOUR_NAPCAT_HOST:25570`
5. 文件发送依赖 `YOUR_SHARED_DIR` 目录(映射到 NapCat 容器内 `/app/files`
6. 通知走 OpenClaw Gateway API不走 QQ 本身

View File

@ -146,5 +146,5 @@ result = subprocess.run(
## 注意事项
1. 点赞不可滥用,同一好友约 10 秒间隔限制
2. 连接 NapCat 失败时检查 `http://YOUR_NAP CAT_HOST:25570`
2. 连接 NapCat 失败时检查 `http://YOUR_NAPCAT_HOST:25570`
3. OCR 远程 URL 会先下载到 `/tmp`,识别完自动删除