Does not work with SlackBot
Opened this issue · 1 comments
calebbraun commented
The script fails because we have a Slackbot auto reply in our channels:
Error:
Traceback (most recent call last):
File "slack_json_to_csv.py", line 54, in <module>
user_cur = user[item["user"]]
KeyError: 'USLACKBOT'
Example message in json
{
"text": "That's just, like, your opinion, man.",
"type": "message",
"subtype": "slackbot_response",
"user": "USLACKBOT",
"ts": "1510321670.000102"
},
almccon commented
@calebbraun I sort of solved this by editing the users.json
file an adding this line to the array of objects:
{"id":"USLACKBOT","name":"Slackbot"},