fix: 修复command的bug

This commit is contained in:
Soulter
2023-04-02 20:31:29 +08:00
parent e320bb5ab8
commit b74d32c2c8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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):