unknown_questions: correct return value

This commit is contained in:
dece 2023-01-30 18:21:34 +01:00
parent f4ece3b5e0
commit c6326d5ee0
2 changed files with 4 additions and 3 deletions

View file

@ -1,9 +1,9 @@
import importlib import importlib
import json import json
import os import os
import time
import signal import signal
import sys import sys
import time
import traceback import traceback
from pathlib import Path from pathlib import Path
from typing import Any, Iterable, Optional from typing import Any, Iterable, Optional

View file

@ -26,9 +26,10 @@ class UnknownQuestionPlugin(Plugin):
if self.gpt3_plugin and message.endswith(self.config["question_mark"]): if self.gpt3_plugin and message.endswith(self.config["question_mark"]):
message += "\n\n" message += "\n\n"
return self.gpt3_plugin.reply(message, event.target) self.gpt3_plugin.reply(message, event.target)
else: else:
return self.classic_reply(event) self.classic_reply(event)
return True
def classic_reply(self, event): def classic_reply(self, event):
if ( if (