Skip to content

Commit 063d3cd

Browse files
author
wimo7083
committed
Remove incorrect commits.
1 parent aca8a73 commit 063d3cd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

pybot/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def make_sentry_logger():
5050
endpoints.slack.create_endpoints(slack)
5151
bot.load_plugin(slack)
5252

53-
#airtable = AirtablePlugin()
54-
#endpoints.airtable.create_endpoints(airtable)
55-
#bot.load_plugin(airtable)
53+
airtable = AirtablePlugin()
54+
endpoints.airtable.create_endpoints(airtable)
55+
bot.load_plugin(airtable)
5656

5757
# Add route to respond to AWS health check
5858
bot.router.add_get("/health", lambda request: Response(status=200))

pybot/endpoints/slack/messages.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def create_endpoints(plugin):
2323

2424

2525
def not_bot_message(event: Message):
26-
value = 'message' not in event or 'subtype' not in event or event['subtype'] != 'bot_message'
27-
return value
26+
return 'message' not in event or 'subtype' not in event['message'] or event['message']['subtype'] != 'bot_message'
2827

2928
def not_bot_delete(event: Message):
3029
return 'previous_message' not in event or 'bot_id' not in event['previous_message']

0 commit comments

Comments
 (0)