unknown_*: little improvements
This commit is contained in:
parent
97c930ff09
commit
3b53f74602
|
@ -24,5 +24,8 @@ class UnknownCommandPlugin(Plugin):
|
|||
return False
|
||||
|
||||
query = " ".join(words[:-1])
|
||||
if not query.endswith("."):
|
||||
query += "."
|
||||
query += "\n\n"
|
||||
self.gpt3_plugin.reply(query, event.target)
|
||||
return True
|
||||
|
|
|
@ -24,7 +24,8 @@ class UnknownQuestionPlugin(Plugin):
|
|||
if message is None:
|
||||
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)
|
||||
else:
|
||||
return self.classic_reply(event)
|
||||
|
|
Loading…
Reference in a new issue