bbot icon indicating copy to clipboard operation
bbot copied to clipboard

watched_events doesn't work in output modules

Open liquidsec opened this issue 3 years ago • 0 comments

Output modules seem to ignore the watched_events value, as well as the filter_event method. To specify a particular set of events, currently it is necessary to explicitly check event.type against self.watched_events like this:

def handle_event(self, event):
    if event.type in self.watched_events:
        do_stuff()

liquidsec avatar Sep 29 '22 20:09 liquidsec