import requests
import turbot.rot
-def rot(slack_client, body, args):
+def rot(turb, body, args):
"""Implementation of the /rot command
The args string should be as follows:
json = {"text": result},
headers = {"Content-type": "application/json"})
else:
- slack_client.chat_postMessage(channel=channel_id, text=result)
+ turb.slack_client.chat_postMessage(channel=channel_id, text=result)
return {
'statusCode': 200,
'body': ""
}
+
+commands = {
+ "/rot": rot
+}