Swiftpack.co - Package - RomanPodymov/SlackMessagesEstimatorUtility

SlackMessagesEstimatorUtility

A robot that sends emojis for Slack messages.

Build Status

Installing

Make sure Xcode 10.3 is installed first.

Mint

mint install RomanPodymov/SlackMessagesEstimatorUtility

Usage

Create Slack bot at https://my.slack.com/services/new/bot. Then go to Integration Settings -> API Token and copy the token. You will use it as token-for-the-app-you-created. Add the bot to the channels you want to listen.

Create the following sme.yml file in any directory:

---
token: token-for-the-app-you-created
emojisToMessages:
  reportChannelName: channel-to-report-name
  ignoreUsers:
    - user.name
  emojisToMessagesCases:
    - emojis:
      - emoji1
      - emoji2
      textProperties:
        startsWith: 
          - first string
        endsWith:
          - second string
        contains: 
          - third string
    - emojis:
      - emoji3
      - emoji4
      textProperties:
        contains: 
          - another string
...

Then run:

smeu /path/to/sme.yml/just/path/without/filename/and/extension

Attributions

This tool is powered by:

License

SlackMessagesEstimatorUtility is licensed under the MIT license. See LICENSE for more info.

Github

link
Stars: 0
Help us keep the lights on