Skip to content

Commit 31a39e8

Browse files
author
Aaron Suarez
authored
Merge pull request #222 from OperationCode/revert-221-survey_feature
Revert "Add /survey command to the slack bot"
2 parents 6a701da + 74adb45 commit 31a39e8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pybot/endpoints/slack/commands.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def create_endpoints(plugin: SlackPlugin):
2727
plugin.on_command("/roll", slash_roll, wait=False)
2828
plugin.on_command("/mentor", slash_mentor, wait=False)
2929
plugin.on_command("/mentor-volunteer", slash_mentor_volunteer, wait=False)
30-
plugin.on_command("/survey", slash_survey, wait=False)
3130

3231

3332
@catch_command_slack_error
@@ -155,15 +154,3 @@ async def slash_roll(command: Command, app: SirBot):
155154
message = f"<@{slack_id}> Rolled {numdice} D{typedice}: {dice}"
156155
response = dict(channel=channel_id, text=message)
157156
await slack.query(methods.CHAT_POST_MESSAGE, response)
158-
159-
@catch_command_slack_error
160-
async def slash_survey(command: Command, app: SirBot):
161-
"""
162-
Invoked via the command /survey
163-
Provides a link to the survey on our website
164-
"""
165-
166-
slack = app["plugins"]["slack"].api
167-
168-
print("HERE IS THE SURVEY LINK:")
169-
await slack.query(methods.CHAT_POST_MESSAGE, "Please fill out our survey at: https://operationcode.org/survey")

0 commit comments

Comments
 (0)