fix: 修复command的bug
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user