Skip to content

Commit

Permalink
Merge pull request #596 from mraniki/sourcery/dev
Browse files Browse the repository at this point in the history
✨ scheduling plugin feature  (Sourcery refactored)
  • Loading branch information
mraniki authored Jul 23, 2023
2 parents 159ab79 + 9c606de commit 036dccd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tt/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ async def send_notification(self, message):
pass

def should_handle(self, message):
if not self.enabled:
return False
if message.startswith(settings.bot_ignore):
return False
return True
return not message.startswith(settings.bot_ignore) if self.enabled else False

async def plugin_schedule_task(self):
pass
Expand Down

0 comments on commit 036dccd

Please sign in to comment.