unknown_*: little improvements

This commit is contained in:
dece 2022-11-29 13:24:13 +01:00
parent 97c930ff09
commit 3b53f74602
2 changed files with 5 additions and 1 deletions

View file

@ -24,5 +24,8 @@ class UnknownCommandPlugin(Plugin):
return False return False
query = " ".join(words[:-1]) query = " ".join(words[:-1])
if not query.endswith("."):
query += "."
query += "\n\n"
self.gpt3_plugin.reply(query, event.target) self.gpt3_plugin.reply(query, event.target)
return True return True

View file

@ -24,7 +24,8 @@ class UnknownQuestionPlugin(Plugin):
if message is None: if message is None:
return False return False
if self.gpt3_plugin: if self.gpt3_plugin and message.endswith(self.config["question_mark"]):
message += "\n\n"
return self.gpt3_plugin.reply(message, event.target) return self.gpt3_plugin.reply(message, event.target)
else: else:
return self.classic_reply(event) return self.classic_reply(event)