Mattermost Slash Command Server
-------term 0--------
git clone git@github.com:aldnav/mmbot.git
cd mmbot
pipenv activate # or `pipenv install --ignore-pipfile` first time
cp conf.sample.yaml conf.yaml
# edit conf.yaml
python application.py
-------term 1--------
# for development purposes
ngrok {port of running application.py}
# copy endpoint
# test in postman (optional)
# test in a separate channel/room
# by pasting link to mm integrations > slash command
route | slash command |
---|---|
/l10n | /translate_cn |
Project uses Pipenv for handling environment requirements. DO NOT MANUALLY EDIT requirements.txt
. It's generated from pipenv lock -r > requirements.txt
Simply zip the application and upload. Or through cli.
pipenv lock -r > requirements.txt
zip ebpackage.zip application.py config.yaml requirements.txt