Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Retrieve Slack History - An action that is invoked every 24 hours with OpenWhisk slack domain and a particular channel, retrieves a bunch of messages and user map. It than replaces user ID with name in all the slack messages and sends them to next action in sequence. For example, user ID "XYZ" is replaced with username "bob":

Code Block
languagejs
   {
        "type": "message",
        "user": "XYZ",
        "text": "Did my email about Slack made it to the dev list?",
        "ts": "1484957540.000002"
    },
Code Block
languagejs
   {
        "type": "message",
        "user": "bob",
        "text": "Did my email about Slack made it to the dev list?",
        "ts": "1484957540.000002"
    },

...

  • Format Slack History -  An action invoked by retrieve slack history action. It takes a list of slack messages and drops messages with "subtype" of "channel_join". It runs messages to through message builder for basic formatting formats messages to group and some advanced restructuring of messages including grouping parent messages and replies together.  

...