craigtrim / slackbot-helper

Helper Functions for Slackbots
0 stars 0 forks source link

Update UserID Extraction Algorithm #1

Open craigtrim opened 1 year ago

craigtrim commented 1 year ago
{
   "blocks":[
      {
         "block_id":"4rdo",
         "text":{
            "text":"<@U045HCSMG8K> How long can particulate pollution remain airborne?",
            "type":"mrkdwn",
            "verbatim":false
         },
         "type":"section"
      }
   ],
   "channel":"C046DB9TLEL",
   "team":"T045AR44M70",
   "text":"<@U045HCSMG8K> How long can particulate pollution remain airborne?",
   "ts":1665724403.461959,
   "type":"app_mention",
   "user":"U046G4FURQT"
}
craigtrim commented 1 year ago

The blocks[text/text] pattern is new to the algorithm