From f3ef72b86e0b63193c42490062e91e5ca809bc3e Mon Sep 17 00:00:00 2001 From: Vivien <34387011+vivien8261@users.noreply.github.com> Date: Sat, 6 Jan 2024 12:14:13 +0800 Subject: [PATCH 1/2] Update bot.py --- core/server/bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/server/bot.py b/core/server/bot.py index 4d47969e..fe7fcfb8 100644 --- a/core/server/bot.py +++ b/core/server/bot.py @@ -16,7 +16,7 @@ class BotAccountModel(BotAppId): private: int = 0 is_main: int = 0 is_start: int = 1 - adapter: str = 'tencent' + adapter: str = 'qq_guild' console_channel: Optional[str] = None host: Optional[str] = None @@ -73,7 +73,8 @@ async def add_bot(self, data: BotAccountModel): @app.route() async def edit_bot(self, data: BotAccountModel): - if BotAccounts.get_or_none(appid=data.appid): + exists = BotAccounts.get_or_none(appid=data.appid) + if exists and exists.id != data.id: return app.response(code=500, message='AppId 已存在') if data.adapter == 'websocket': From 12f6c6419553d824dfe20b842a315881ed930285 Mon Sep 17 00:00:00 2001 From: Vivien <34387011+vivien8261@users.noreply.github.com> Date: Wed, 10 Jan 2024 21:46:22 +0800 Subject: [PATCH 2/2] update --- .github/publish.txt | 2 +- pluginsDev | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/publish.txt b/.github/publish.txt index b684048c..dfe77b4e 100644 --- a/.github/publish.txt +++ b/.github/publish.txt @@ -1 +1 @@ -v6.4.3 +v6.4.4 diff --git a/pluginsDev b/pluginsDev index 9c6130cf..c847ccd8 160000 --- a/pluginsDev +++ b/pluginsDev @@ -1 +1 @@ -Subproject commit 9c6130cf1795db8326aa049921628bf365cda2e6 +Subproject commit c847ccd8e5f64128f0e0aac3ff1c9668a81f1010 diff --git a/requirements.txt b/requirements.txt index 25f010df..bf87161f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -amiyabot==1.8.6 +amiyabot==1.8.7 attrdict~=2.0.1 baidu-aip dhash~=1.3