Skip to content

Commit b588f16

Browse files
committed
Formatting
1 parent d704757 commit b588f16

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

pybot/endpoints/slack/actions/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@ def create_endpoints(plugin: SlackPlugin):
5656
plugin.on_block(
5757
"clear_skillsets", clear_skillsets, action_id="clear_skillsets_btn", wait=False
5858
)
59-
plugin.on_block("mentor", set_requested_mentor, action_id="mentor_select", wait=False)
60-
plugin.on_block("comments", open_details_dialog, action_id="comments_btn", wait=False)
59+
plugin.on_block(
60+
"mentor", set_requested_mentor, action_id="mentor_select", wait=False
61+
)
62+
plugin.on_block(
63+
"comments", open_details_dialog, action_id="comments_btn", wait=False
64+
)
6165
plugin.on_block("mentor_details_submit", mentor_details_submit, wait=False)
62-
plugin.on_block("affiliation", set_group, action_id="affiliation_select", wait=False)
66+
plugin.on_block(
67+
"affiliation", set_group, action_id="affiliation_select", wait=False
68+
)
6369
plugin.on_block(
6470
"submission", mentor_request_submit, action_id="submit_btn", wait=False
6571
)

pybot/endpoints/slack/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from sirbot.plugins.slack import SlackPlugin
66

77
from pybot.endpoints.slack.message_templates.commands import (
8-
mentor_request_attachments,
98
ticket_dialog,
10-
new_mentor_request_attachment)
9+
new_mentor_request_attachment,
10+
)
1111
from pybot.endpoints.slack.utils import MODERATOR_CHANNEL
1212
from pybot.endpoints.slack.utils.action_messages import not_claimed_attachment
1313
from pybot.endpoints.slack.utils.command_utils import get_slash_repeat_messages

pybot/endpoints/slack/message_templates/commands.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ def new_mentor_request_attachment(services, mentors, skillsets):
135135
return [
136136
{
137137
"type": "section",
138-
"text": {"type": "mrkdwn", "text": "👨‍🏫 Mentor Request Form 👩‍🏫"},
138+
"text": {
139+
"type": "mrkdwn",
140+
"text": (
141+
"👨‍🏫 Mentor Request Form 👩‍🏫\n"
142+
"Thank you for signing up for a 30 minute mentoring session. Please fill out the form below"
143+
),
144+
},
139145
},
140146
{"type": "divider"},
141147
{

pybot/endpoints/slack/message_templates/mentor_request.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from slack.io.abc import SlackAPI
99

1010

11-
1211
class BlockIndex(IntEnum):
1312
SERVICE = 2
1413
SKILLSET = 3
@@ -180,7 +179,7 @@ async def submit_request(self, username: str, email: str, airtable: AirtableAPI)
180179
return await airtable.add_record("Mentor Request", {"fields": params})
181180

182181
def submission_error(
183-
self, airtable_response, slack: SlackAPI
182+
self, airtable_response, slack: SlackAPI
184183
) -> Coroutine[Any, Any, dict]:
185184
error_attachment = {
186185
"text": (
@@ -227,7 +226,7 @@ def update_message(self, slack: SlackAPI) -> Coroutine[Any, Any, dict]:
227226

228227
class MentorRequestClaim(Action):
229228
def __init__(
230-
self, raw_action: MutableMapping, slack: SlackAPI, airtable: AirtableAPI
229+
self, raw_action: MutableMapping, slack: SlackAPI, airtable: AirtableAPI
231230
):
232231
super().__init__(raw_action)
233232
self.slack = slack

0 commit comments

Comments
 (0)