unknown_questions: correct return value

master
dece 1 year ago
parent f4ece3b5e0
commit c6326d5ee0

@ -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

@ -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 (

Loading…
Cancel
Save