Slack bot that understands the emojirades game and handles score keeping
# Preferably run on a virtualenv
pip3 install -r requirements.txt --upgrade
cd emojirades-plusplus
pip3 install -e .
pip3 install -r test_requirements.txt --upgrade
pycodestyle
pytest
Register your bot on slack, or pass me your email so I can add you to my Dev Slack workspace
export SLACK_BOT_TOKEN='xoxb-*******'
Optionally if you are saving data into S3, you might need to set the profile to use
export AWS_PROFILE='dev-profile'
emojirades-plusplus --score-file scores.csv --state-file state.json -vv
cp emojirades.service /etc/systemd/system/
sudo chmod 0664 /etc/systemd/system/emojirades.service
# Edit the /etc/systemd/system/emojirades.service file and update the user and group
cp emojiradesplusplus.config /etc/emojiradesplusplus
sudo chmod 0400 /etc/emojiradesplusplus
# Edit the /etc/emojiradesplusplus config file with your configuration for the bot
sudo systemctl daemon-reload
sudo systemctl enable emojirades
sudo systemctl start emojirades
- Create release branch containing new version in setup.py
- Perform a PR into master
- Perform release in GitHub
- TravisCI will automatically build and deploy on a tagged commit into master (the release does this)
docker build --pull --no-cache -t michaelrobbins/emojirades:X.Y.Z -t michaelrobbins/emojirades:latest .
docker run -d \
--name emojirades \
--restart=always \
-v "/path/to/your/.aws/:/root/.aws/:ro" \
-e "AWS_PROFILE=emojirades" \
-e "SLACK_BOT_TOKEN=xoxb-111111111111-222222222222222222222222" \
michaelrobbins/emojirades:X.Y.Z \
--score-file /path/to/scores.json \
--state-file /path/to/state.json \
-vv