fix: bugfixes

This commit is contained in:
Soulter
2023-06-06 12:28:55 +00:00
parent cbdc7b7ce4
commit 5f024e9f30
4 changed files with 17 additions and 15 deletions
+4 -3
View File
@@ -19,7 +19,7 @@ class CommandRevChatGPT(Command):
if hit:
return True, res
if self.command_start_with(message, "help", "帮助"):
return True, self.help()
return True, self.help(cached_plugins)
elif self.command_start_with(message, "reset"):
return True, self.reset()
elif self.command_start_with(message, "update"):
@@ -34,5 +34,6 @@ class CommandRevChatGPT(Command):
def reset(self):
return False, "此功能暂未开放", "reset"
def help(self):
return True, super().help_messager(super().general_commands(), self.platform), "help"
def help(self, cached_plugins: dict):
return True, super().help_messager(super().general_commands(), self.platform, cached_plugins), "help"