capture: add debug log because of issues

This commit is contained in:
dece 2022-08-30 18:50:28 +02:00 committed by Adrien Abraham
parent 6eaac2c8ea
commit 9c077c72fc

View file

@ -26,9 +26,12 @@ class CapturePlugin(Plugin):
return False return False
if self.current_thing is not None: if self.current_thing is not None:
message = event.arguments[0] 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) self.capture(event.source.nick, event.target)
return True return True
else:
self.bot.log_d(f"Capture: “{message}” != “{capture_sentence}")
return False return False
if proc(self.config["rate"]): if proc(self.config["rate"]):