llimllib / limbo

A simple, clean, easy to modify Slack chatbot
MIT License
403 stars 160 forks source link

handle user in message_replied #191

Closed llimllib closed 4 years ago

llimllib commented 4 years ago

on messages in threads, limbo was not properly handling the user id. Here's what a reply in a thread looks like:

{'type': 'message',
'subtype': 'message_replied',
'hidden': True,
'message': {
    'client_msg_id': 'f0cb2424-625f-4657-a067-850ddef48d4e',
    'type': 'message',
    'text': '!flip 1,2,3',
    'user': 'UABC12345',
    'ts': '1591025216.001900',
    'team': 'TABC12345',
    'thread_ts': '1591025216.001900',
    'parent_user_id': 'UABC12345',
    'reply_count': 0,
    'reply_users_count': 0,
    'latest_reply': '0000000000.000000',
    'reply_users': []},
'channel': 'CABC12345',
'event_ts': '1591025219.002200',
'ts': '1591025219.002200'}
llimllib commented 4 years ago

Passed: https://travis-ci.org/github/llimllib/limbo/builds/693508290