unknown_questions: correct return value

master
dece 1 year ago
parent f4ece3b5e0
commit c6326d5ee0

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

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

Loading…
Cancel
Save