Pipe stdout directly to Mattermost.
$ pip install patter
Then set the following environment variables based on your Mattermost server's config:
MATTERMOST_TEAM_NAME
MATTERMOST_URL
MATTERMOST_USERNAME
MATTERMOST_PASSWORD
MATTERMOST_PORT
Send a message to a user.
$ echo "testing" | patter -u some_user
Send a message to a channel.
$ echo "testing" | patter -c town-square
- remove prints and add logging with verbose flag
- add unit tests via pytest
- allow text that is not UTF-8 to be sent
- add option of reading from a .patter file instead of using env vars.
PRs accepted.
MIT © Christopher Hranj
Notice: This project was developed in part during my 10% time at Truveris, Inc.