]> git.cworth.org Git - turbot/blobdiff - turbot/commands.py
Don't shove the local variable hunts_table into the turb object
[turbot] / turbot / commands.py
index 1b7098ca4937da7f1959aaf647628dc2401c9f9e..68f470a226b3f5cc7f9ba3ed82c0197f613f3595 100644 (file)
@@ -29,7 +29,7 @@ def rot(turb, body, args):
                       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,