Skip to content

aldnav/mmbot

Repository files navigation

mmbot

Mattermost Slash Command Server

Setup

-------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

Example

route slash command
/l10n /translate_cn

Development

Project uses Pipenv for handling environment requirements. DO NOT MANUALLY EDIT requirements.txt. It's generated from pipenv lock -r > requirements.txt

Deployment to AWS Elasticbeanstalk

Simply zip the application and upload. Or through cli.

pipenv lock -r > requirements.txt
zip ebpackage.zip application.py config.yaml requirements.txt

About

Mattermost slash command server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages