diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml
index a5947b06..2cced465 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yml
@@ -23,8 +23,8 @@ body:
required: true
- type: input
attributes:
- label: QChatGPT版本
- description: QChatGPT版本号
+ label: LangBot 版本
+ description: LangBot (QChatGPT) 版本号
placeholder: 例如:v3.3.0,可以使用`!version`命令查看,或者到 pkg/utils/constants.py 查看
validations:
required: true
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index a4b3a1a4..829e3018 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -8,7 +8,7 @@
*请在方括号间写`x`以打勾
-- [ ] 阅读仓库[贡献指引](https://github.com/RockChinQ/QChatGPT/blob/master/CONTRIBUTING.md)了吗?
+- [ ] 阅读仓库[贡献指引](https://github.com/RockChinQ/LangBot/blob/master/CONTRIBUTING.md)了吗?
- [ ] 与项目所有者沟通过了吗?
- [ ] 我确定已自行测试所作的更改,确保功能符合预期。
diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml
index 96841c43..63cbf3d5 100644
--- a/.github/workflows/build-docker-image.yml
+++ b/.github/workflows/build-docker-image.yml
@@ -38,5 +38,5 @@ jobs:
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
- name: Create Buildx
run: docker buildx create --name mybuilder --use
- - name: Build # image name: rockchin/qchatgpt:
- run: docker buildx build --platform linux/arm64,linux/amd64 -t rockchin/qchatgpt:${{ steps.check_version.outputs.version }} -t rockchin/qchatgpt:latest . --push
+ - name: Build # image name: rockchin/langbot:
+ run: docker buildx build --platform linux/arm64,linux/amd64 -t rockchin/langbot:${{ steps.check_version.outputs.version }} -t rockchin/langbot:latest . --push
diff --git a/.gitignore b/.gitignore
index 65ef5e47..db3cfc7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
__pycache__/
database.db
qchatgpt.log
+langbot.log
/banlist.py
/plugins/
!/plugins/__init__.py
diff --git a/README.md b/README.md
index 29e95486..4c74fad6 100644
--- a/README.md
+++ b/README.md
@@ -4,13 +4,13 @@
-# QChatGPT
+# LangBot

-[](https://github.com/RockChinQ/QChatGPT/releases/latest)
-
-
+[](https://github.com/RockChinQ/LangBot/releases/latest)
+
+


diff --git a/main.py b/main.py
index 6164bf5b..9254f3f5 100644
--- a/main.py
+++ b/main.py
@@ -1,6 +1,6 @@
-# QChatGPT 终端启动入口
+# LangBot 终端启动入口
# 在此层级解决依赖项检查。
-# QChatGPT/main.py
+# LangBot/main.py
asciiart = r"""
_ ___ _
@@ -63,7 +63,7 @@ if __name__ == '__main__':
input("按任意键退出...")
exit(1)
- # 检查本目录是否有main.py,且包含QChatGPT字符串
+ # 检查本目录是否有main.py,且包含LangBot字符串
invalid_pwd = False
if not os.path.exists('main.py'):
@@ -71,10 +71,10 @@ if __name__ == '__main__':
else:
with open('main.py', 'r', encoding='utf-8') as f:
content = f.read()
- if "QChatGPT/main.py" not in content:
+ if "LangBot/main.py" not in content:
invalid_pwd = True
if invalid_pwd:
- print("请在QChatGPT项目根目录下以命令形式运行此程序。")
+ print("请在 LangBot 项目根目录下以命令形式运行此程序。")
input("按任意键退出...")
exit(1)
diff --git a/pkg/platform/types/message.py b/pkg/platform/types/message.py
index e790f881..149c19e7 100644
--- a/pkg/platform/types/message.py
+++ b/pkg/platform/types/message.py
@@ -545,7 +545,7 @@ class Image(MessageComponent):
@pydantic.validator('path')
def validate_path(cls, path: typing.Union[str, Path, None]):
- """修复 path 参数的行为,使之相对于 QChatGPT 的启动路径。"""
+ """修复 path 参数的行为,使之相对于 LangBot 的启动路径。"""
if path:
try:
return str(Path(path).resolve(strict=True))
@@ -673,7 +673,7 @@ class Voice(MessageComponent):
"""语音的长度,单位为秒。"""
@pydantic.validator('path')
def validate_path(cls, path: typing.Optional[str]):
- """修复 path 参数的行为,使之相对于 QChatGPT 的启动路径。"""
+ """修复 path 参数的行为,使之相对于 LangBot 的启动路径。"""
if path:
try:
return str(Path(path).resolve(strict=True))
diff --git a/pkg/plugin/context.py b/pkg/plugin/context.py
index 8c9e4a06..e3d04aa4 100644
--- a/pkg/plugin/context.py
+++ b/pkg/plugin/context.py
@@ -103,7 +103,7 @@ class BasePlugin(metaclass=abc.ABCMeta):
class APIHost:
- """QChatGPT API 宿主"""
+ """LangBot API 宿主"""
ap: app.Application
@@ -136,7 +136,7 @@ class APIHost:
if self.ap.ver_mgr.compare_version_str(qchatgpt_version, ge) < 0 or \
(self.ap.ver_mgr.compare_version_str(qchatgpt_version, le) > 0):
- raise Exception("QChatGPT 版本不满足要求,某些功能(可能是由插件提供的)无法正常使用。(要求版本:{}-{},但当前版本:{})".format(ge, le, qchatgpt_version))
+ raise Exception("LangBot 版本不满足要求,某些功能(可能是由插件提供的)无法正常使用。(要求版本:{}-{},但当前版本:{})".format(ge, le, qchatgpt_version))
return True
diff --git a/pkg/utils/announce.py b/pkg/utils/announce.py
index ff1e363a..0b431f94 100644
--- a/pkg/utils/announce.py
+++ b/pkg/utils/announce.py
@@ -48,7 +48,7 @@ class AnnouncementManager:
) -> list[Announcement]:
"""获取所有公告"""
resp = requests.get(
- url="https://api.github.com/repos/RockChinQ/QChatGPT/contents/res/announcement.json",
+ url="https://api.github.com/repos/RockChinQ/LangBot/contents/res/announcement.json",
proxies=self.ap.proxy_mgr.get_forward_proxies(),
timeout=5
)
diff --git a/pkg/utils/version.py b/pkg/utils/version.py
index aa98be26..5e5741c6 100644
--- a/pkg/utils/version.py
+++ b/pkg/utils/version.py
@@ -38,7 +38,7 @@ class VersionManager:
async def get_release_list(self) -> list:
"""获取发行列表"""
rls_list_resp = requests.get(
- url="https://api.github.com/repos/RockChinQ/QChatGPT/releases",
+ url="https://api.github.com/repos/RockChinQ/LangBot/releases",
proxies=self.ap.proxy_mgr.get_forward_proxies(),
timeout=5
)
diff --git a/res/announcement.json b/res/announcement.json
index e8f72b14..fe51488c 100644
--- a/res/announcement.json
+++ b/res/announcement.json
@@ -1,8 +1 @@
-[
- {
- "id": 6,
- "time": "2024-03-08 22:30:00",
- "timestamp": 1709908200,
- "content": "QChatGPT 3.x 已发布,若您仍在使用不再维护的 2.x 版本,请尽快迁移至 3.x 版本:https://github.com/RockChinQ/QChatGPT/discussions/690"
- }
-]
+[]
diff --git a/templates/schema/platform.json b/templates/schema/platform.json
index cb42b798..11b5b2f9 100644
--- a/templates/schema/platform.json
+++ b/templates/schema/platform.json
@@ -68,7 +68,7 @@
"host": {
"type": "string",
"default": "0.0.0.0",
- "description": "监听的 IP 地址,一般就保持 0.0.0.0 就可以了。使用 aiocqhttp 时,QChatGPT 作为服务端被动等待框架连接,请在 Lagrange 等框架中设置被动 ws 地址或者反向 ws 地址(具体视框架而定)为 QChatGPT 监听的地址,且路径为/ws,例如:ws://127.0.0.1:8080/ws"
+ "description": "监听的 IP 地址,一般就保持 0.0.0.0 就可以了。使用 aiocqhttp 时,LangBot 作为服务端被动等待框架连接,请在 Lagrange 等框架中设置被动 ws 地址或者反向 ws 地址(具体视框架而定)为 LangBot 监听的地址,且路径为/ws,例如:ws://127.0.0.1:8080/ws"
},
"port": {
"type": "integer",
diff --git a/templates/system.json b/templates/system.json
index 94a8ad16..bbb97ffb 100644
--- a/templates/system.json
+++ b/templates/system.json
@@ -11,7 +11,7 @@
},
"pipeline-concurrency": 20,
"qcg-center-url": "https://api.qchatgpt.rockchin.top/api/v2",
- "help-message": "QChatGPT - 😎高稳定性、🧩支持插件、🌏实时联网的 ChatGPT QQ 机器人🤖\n链接:https://q.rkcn.top",
+ "help-message": "LangBot - 😎高稳定性、🧩支持插件、🌏实时联网的 ChatGPT QQ 机器人🤖\n链接:https://q.rkcn.top",
"http-api": {
"enable": true,
"host": "0.0.0.0",
diff --git a/web/src/components/AboutDialog.vue b/web/src/components/AboutDialog.vue
index b171216b..c7f1037f 100644
--- a/web/src/components/AboutDialog.vue
+++ b/web/src/components/AboutDialog.vue
@@ -41,7 +41,7 @@ const close = () => {
}
const openSource = () => {
- window.open('https://github.com/RockChinQ/QChatGPT', '_blank')
+ window.open('https://github.com/RockChinQ/LangBot', '_blank')
}