Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romanpodymov/slackmessagesestimatorutility
An utility that estimates messages based on configuration file.
https://github.com/romanpodymov/slackmessagesestimatorutility
hacktoberfest macos slack swift
Last synced: 27 days ago
JSON representation
An utility that estimates messages based on configuration file.
- Host: GitHub
- URL: https://github.com/romanpodymov/slackmessagesestimatorutility
- Owner: RomanPodymov
- License: mit
- Created: 2019-08-24T15:52:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T06:21:22.000Z (8 months ago)
- Last Synced: 2024-02-28T06:43:23.729Z (8 months ago)
- Topics: hacktoberfest, macos, slack, swift
- Language: Swift
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SlackMessagesEstimatorUtility
An utility that estimates messages based on configuration file.
## Installing
Make sure Xcode 15.2 is installed first.
### [Mint](https://github.com/yonaskolb/mint)
```sh
mint install RomanPodymov/SlackMessagesEstimatorUtility
```## Usage
### Setup a Classic App (the original text is [here](https://github.com/slackapi/hubot-slack/issues/584#issuecomment-611808704))
* Create a classic app from https://api.slack.com/apps?new_classic_app=1
* Go to Features > OAuth & Permissions > Scopes
* Click "Add an OAuth Scope"
* Search "bot" and choose it
* Go to Features > App Home
* Click "Add Legacy Bot User"
* Input "Display Name" and "Default username"
* Click "Add"
* Go to Settings > Install App
* Click "Install App to Workspace"
* Complete the OAuth flowCreate the following **sme.yml** file in any directory:
```yml
---
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:
```shell
smeu /path/to/sme.yml/just/path/without/filename/and/extension
```## Attributions
This tool is powered by:
- [Rainbow](https://github.com/onevcat/Rainbow)
- [SlackMessagesEstimator](https://github.com/RomanPodymov/SlackMessagesEstimator)
- [SwifterSwift](https://github.com/SwifterSwift/SwifterSwift)## License
SlackMessagesEstimatorUtility is licensed under the MIT license. See [LICENSE](LICENSE) for more info.