Request Approval

Interface with your Slack team in ThingEngine!

Uploaded By: Almond Authors

Commands

  • WHEN: when i receive a message on slack
  • WHEN: when i receive a message from ____ (sender) on slack
  • WHEN: when i receive a message in channel ____ (channel) on slack
  • GET: last slack messages
  • GET: recent messages from ____ (sender) in slack
  • GET: recent slack messages in ____ (channel)
  • GET: slack messages i received in the last hour
  • GET: slack messages in ____ (channel) i received in the last hour
  • DO: send a message on slack to ____ (channel) saying ____ (message)
  • DO: set the purpose for channel ____ (channel) to ____ (purpose) on slack
  • DO: set the topic for channel ____ (channel) to ____ (topic) on slack
  • DO: set me as away on slack
  • DO: set me as not away on slack
  • DO: change my slack presence
  • DO: send a picture on slack to ____ (channel) with caption ____ (caption)
  • DO: send a picture on slack to ____ (channel)
  • DO: send a message on slack to ____ (channel)
  • DO: send a message on slack
  • DO: send ____ (picture url) to ____ (channel) on slack
  • DO: change the topic of slack channel ____ (channel)
  • DO: change the purpose of slack channel ____ (channel)
  • DO: message ____ (channel) on slack saying ____ (message)
  • DO: send ____ (message) to ____ (channel) on slack
  • DO: set the purpose for slack channel ____ (channel) to ____ (purpose)
  • DO: set the topic of slack channel ____ (channel) to ____ (topic)
  • DO: mark me as away on slack

Queries

  • channel_history(out channel :Entity(tt:hashtag),
    out date :Date,
    out sender :Entity(tt:username),
    out message :String)
    Polls Slack and sends you any new messages that appear in public channels of your Slack team.

Actions

  • send(in req channel :Entity(tt:hashtag),
    in req message :String)
    Send a message to the specified Slack channel as a bot named after you. Omit the hashtag from the channel name.
  • updateChannelPurpose(in req channel :Entity(tt:hashtag),
    in req purpose :String)
    Update the specified channel's purpose. Omit the hashtag from the channel name.
  • updateChannelTopic(in req channel :Entity(tt:hashtag),
    in req topic :String)
    Update the specified channel's topic. Omit the hashtag from the channel name.
  • setPresence(in req presence :Enum(away,auto))Update your displayed presence. Presence must be 'away' or 'auto'.
  • send_picture(in req channel :Entity(tt:hashtag),
    in req caption :String,
    in req picture_url :Entity(tt:picture))
    Send a message with a picture attachment to the specified Slack channel. Omit the hashtag from the channel name.