Skip to content

Commit a0ea5ba

Browse files
committed
Reconcile changes between staging and master
1 parent c117c32 commit a0ea5ba

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

pybot/endpoints/slack/actions.py

Whitespace-only changes.

pybot/endpoints/slack/actions/general_actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def claimed(action: Action, app: SirBot):
1717
attachments = action['original_message']['attachments']
1818

1919
for index, attachment in enumerate(attachments):
20-
if attachment['callback_id'] == 'claimed':
20+
if 'callback_id' in attachment and attachment['callback_id'] == 'claimed':
2121
attachments[index] = claimed_attachment(user_id)
2222
response['attachments'] = attachments
2323

@@ -34,7 +34,7 @@ async def reset_claim(action: Action, app: SirBot):
3434

3535
attachments = action['original_message']['attachments']
3636
for index, attachment in enumerate(attachments):
37-
if attachment['callback_id'] == 'claimed':
37+
if 'callback_id' in attachment and attachment['callback_id'] == 'claimed':
3838
attachments[index] = not_claimed_attachment()
3939

4040
response['attachments'] = attachments

pybot/endpoints/slack/actions/help_ticket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import json
2-
31
from sirbot import SirBot
42
from slack import methods
53
from slack.actions import Action

pybot/endpoints/slack/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def create_endpoints(plugin: SlackPlugin):
2626
plugin.on_command('/repeat', slash_repeat, wait=False)
2727
plugin.on_command('/report', slash_report, wait=False)
2828
plugin.on_command('/ticket', slash_ticket, wait=False)
29-
plugin.on_command('/mentor', slash_mentor, wait=False)
29+
# plugin.on_command('/mentor', slash_mentor, wait=False)
3030

3131

3232
async def slash_mentor(command: Command, app: SirBot):

0 commit comments

Comments
 (0)