From b74d32c2c83f032fb6273e8c2830a9af629b560a Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sun, 2 Apr 2023 20:31:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcommand=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 2 +- model/command/command_openai_official.py | 2 +- model/command/command_rev_chatgpt.py | 2 +- model/command/command_rev_edgegpt.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/model/command/command.py b/model/command/command.py index 589d2bd04..43fdb1a34 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -30,7 +30,7 @@ class Command: commits = list(origin.refs.master.log())[0:5] remote_commit_hash = origin.refs.master.commit.hexsha - return True, f"当前版本: {commit.hexsha}\n最新版本: {remote_commit_hash}\n\n最新5条commit:\n\n使用update latest更新至最新版本\n" + return True, f"当前版本: {commit.hexsha}\n最新版本: {remote_commit_hash}\n\n最新5条commit:{str(commits)}\n\n使用update latest更新至最新版本\n" else: if l[1] == "latest": try: diff --git a/model/command/command_openai_official.py b/model/command/command_openai_official.py index 987ec92c2..6fe4a276c 100644 --- a/model/command/command_openai_official.py +++ b/model/command/command_openai_official.py @@ -30,7 +30,7 @@ class CommandOpenAIOfficial(Command): elif message.startswith("画"): return True, self.draw(message) elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None diff --git a/model/command/command_rev_chatgpt.py b/model/command/command_rev_chatgpt.py index 08edcf85c..f73ce3f48 100644 --- a/model/command/command_rev_chatgpt.py +++ b/model/command/command_rev_chatgpt.py @@ -14,7 +14,7 @@ class CommandRevChatGPT(Command): if message.startswith("help") or message.startswith("帮助"): return True, self.help() elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None def help(self): diff --git a/model/command/command_rev_edgegpt.py b/model/command/command_rev_edgegpt.py index 9ae8702ab..5e9fdf46a 100644 --- a/model/command/command_rev_edgegpt.py +++ b/model/command/command_rev_edgegpt.py @@ -11,7 +11,7 @@ class CommandRevEdgeGPT(Command): elif message.startswith("help") or message.startswith("帮助"): return True, self.help() elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None def reset(self, loop):