capture: add debug log because of issues

This commit is contained in:
dece 2022-08-30 18:50:28 +02:00
parent 1639ffb3ee
commit dfed9d5be5

View file

@ -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"]):