@@ -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 )
@@ -63,26 +62,6 @@ async def slash_mentor_volunteer(command: Command, app: SirBot) -> None:
6362
6463 await app .plugins ["slack" ].api .query (methods .CHAT_POST_MESSAGE , response )
6564
66-
67- @catch_command_slack_error
68- async def slash_ticket (command : Command , app : SirBot ):
69- trigger_id = command ["trigger_id" ]
70- user_id = command ["user_id" ]
71- logger .warning (command ["text" ])
72-
73- user_info = await app .plugins ["slack" ].api .query (
74- methods .USERS_INFO , {"user" : user_id }
75- )
76- clicker_email = user_info ["user" ]["profile" ]["email" ]
77-
78- response = {
79- "trigger_id" : trigger_id ,
80- "dialog" : ticket_dialog (clicker_email , command ["text" ]),
81- }
82-
83- await app .plugins ["slack" ].api .query (methods .DIALOG_OPEN , response )
84-
85-
8665@catch_command_slack_error
8766async def slash_report (command : Command , app : SirBot ):
8867 """
0 commit comments