Count pancake emoji reactions
Find a file
2020-12-06 02:08:50 +01:00
tools Initial commit 2020-12-06 01:53:50 +01:00
.gitignore Initial commit 2020-12-06 01:53:50 +01:00
CHANGELOG.md Initial commit 2020-12-06 01:53:50 +01:00
make_table.py Fix table maker 2020-12-06 02:08:50 +01:00
read_mattermost.py Initial commit 2020-12-06 01:53:50 +01:00
README.md Initial commit 2020-12-06 01:53:50 +01:00
requirements.txt Initial commit 2020-12-06 01:53:50 +01:00
setup.py Initial commit 2020-12-06 01:53:50 +01:00

pancakecounter

Use MM_USERNAME=username MM_PASSWORD=password ./read_mattermost.py --live > verifications.log to connect to Mattermost and read the relevant emoji events. Drop the --live if you just want to read once and don't want to keep watching.

Use ./make_table.py < verifications to create a table based on these events.

As an alternative to MM_USERNAME=username MM_PASSWORD=password you can also use MM_TOKEN=token.

Installation

Install the requirements in requirements.txt with pip install -r requirements.txt.

If you want to create a virtualenv in this directory and install the dependencies in it, you could instead use

tools/create_venv.sh

Activate the virtualenv with source venv/bin/activate. To make this easier, you could create an alias alias venv='source venv/bin/activate' in your shell.

Development

If you introduce dependencies, list them in setup.py under install_requires, and run tools/update_requirements.sh.