Skip to content

Commit 62efd37

Browse files
Deleted the /ticket function
1 parent e8d36e0 commit 62efd37

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

pybot/endpoints/slack/commands.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def create_endpoints(plugin: SlackPlugin):
2424
plugin.on_command("/lunch", slash_lunch, wait=False)
2525
plugin.on_command("/repeat", slash_repeat, wait=False)
2626
plugin.on_command("/report", slash_report, wait=False)
27-
plugin.on_command("/ticket", slash_ticket, wait=False)
2827
plugin.on_command("/roll", slash_roll, wait=False)
2928
plugin.on_command("/mentor", slash_mentor, wait=False)
3029
plugin.on_command("/mentor-volunteer", slash_mentor_volunteer, wait=False)
@@ -62,26 +61,6 @@ async def slash_mentor_volunteer(command: Command, app: SirBot) -> None:
6261

6362
await app.plugins["slack"].api.query(methods.CHAT_POST_MESSAGE, response)
6463

65-
66-
@catch_command_slack_error
67-
async def slash_ticket(command: Command, app: SirBot):
68-
trigger_id = command["trigger_id"]
69-
user_id = command["user_id"]
70-
logger.warning(command["text"])
71-
72-
user_info = await app.plugins["slack"].api.query(
73-
methods.USERS_INFO, {"user": user_id}
74-
)
75-
clicker_email = user_info["user"]["profile"]["email"]
76-
77-
response = {
78-
"trigger_id": trigger_id,
79-
"dialog": ticket_dialog(clicker_email, command["text"]),
80-
}
81-
82-
await app.plugins["slack"].api.query(methods.DIALOG_OPEN, response)
83-
84-
8564
@catch_command_slack_error
8665
async def slash_report(command: Command, app: SirBot):
8766
"""

0 commit comments

Comments
 (0)