Skip to content

Commit bc7cccd

Browse files
author
Aaron Suarez
authored
Merge pull request #220 from wskinner74/iss217
Send Slack Invite Error to Ops channel
2 parents 31a39e8 + 9f41938 commit bc7cccd

File tree

4 files changed

+2
-46
lines changed

4 files changed

+2
-46
lines changed

pybot/endpoints/api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def handle_slack_invite_error(email, error, slack):
7676
)
7777

7878
response = {
79-
"channel": MODERATOR_CHANNEL,
79+
"channel": OPS_CHANNEL,
8080
"attachments": attachments,
8181
"text": "User Slack Invite Error",
8282
}

pybot/endpoints/slack/actions/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from sirbot.plugins.slack import SlackPlugin
22

33
from .general_actions import claimed, delete_message, reset_claim
4-
from .help_ticket import open_ticket, ticket_status
54
from .mentor_request import (
65
add_skillset,
76
claim_mentee,
@@ -46,10 +45,6 @@ def create_endpoints(plugin: SlackPlugin):
4645
plugin.on_action("report_message", open_report_dialog, wait=False)
4746
plugin.on_action("report_dialog", send_report, wait=False)
4847

49-
# help ticket/request interactive actions
50-
plugin.on_action("open_ticket", open_ticket, wait=False)
51-
plugin.on_action("ticket_status", ticket_status, wait=False)
52-
5348
# mentorship related interactive actions
5449
plugin.on_block(
5550
"mentor_service",

pybot/endpoints/slack/actions/help_ticket.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

pybot/endpoints/slack/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MENTOR_CHANNEL = os.environ.get("MENTOR_CHANNEL", "mentors-internal")
77
COMMUNITY_CHANNEL = os.environ.get("COMMUNITY_CHANNEL", "greetings")
88
MODERATOR_CHANNEL = os.environ.get("MODERATOR_CHANNEL", "moderators")
9-
TICKET_CHANNEL = os.environ.get("TICKET_CHANNEL", "oc-tech")
9+
OPS_CHANNEL = os.environ.get("OPS_CHANNEL", "oc-ops")
1010
SLACK_BOT_USER_ID = os.environ.get("SLACK_BOT_USER_ID", "ABC123")
1111
SLACK_BOT_ID = os.environ.get("SLACK_BOT_ID", "ABC123")
1212
YELP_TOKEN = os.environ.get("YELP_TOKEN", "token")

0 commit comments

Comments
 (0)