Skip to content

Commit

Permalink
Merge pull request #265 from AmiyaBot/V6-dev
Browse files Browse the repository at this point in the history
V6 dev
  • Loading branch information
vivien8261 authored Jan 10, 2024
2 parents d76ca75 + 12f6c64 commit ebcdfc5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/publish.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v6.4.3
v6.4.4
5 changes: 3 additions & 2 deletions core/server/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
amiyabot==1.8.6
amiyabot==1.8.7
attrdict~=2.0.1
baidu-aip
dhash~=1.3
Expand Down

0 comments on commit ebcdfc5

Please sign in to comment.