Count pancake emoji reactions
Go to file
Midgard 05a6a4baa6
Use green number for bot replies to avoid confusion
2020-12-10 12:23:14 +01:00
tools Initial commit 2020-12-06 01:53:50 +01:00
.editorconfig Add EditorConfig 2020-12-09 15:10:08 +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
README.md Rename make_table.py to table.py 2020-12-06 02:09:23 +01:00
read_mattermost.py Use green number for bot replies to avoid confusion 2020-12-10 12:23:14 +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
table.py Fix or silence Pylint issues 2020-12-09 15:09:39 +01:00

README.md

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