unknown_*: little improvements
This commit is contained in:
parent
97c930ff09
commit
3b53f74602
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue