From 9c077c72fcc7bb46e286fccb597ca132ebd760ed Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 30 Aug 2022 18:50:28 +0200 Subject: [PATCH] capture: add debug log because of issues --- edmond/plugins/capture.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edmond/plugins/capture.py b/edmond/plugins/capture.py index 46c29f5..ca58414 100644 --- a/edmond/plugins/capture.py +++ b/edmond/plugins/capture.py @@ -26,9 +26,12 @@ class CapturePlugin(Plugin): return False if self.current_thing is not None: message = event.arguments[0] - if message == self.config["capture_sentence"]: + capture_sentence = self.config["capture_sentence"] + if message == capture_sentence: self.capture(event.source.nick, event.target) return True + else: + self.bot.log_d(f"Capture: “{message}” != “{capture_sentence}”") return False if proc(self.config["rate"]):