https://github.com/cedriccabessa/coffeeconnection
Connect people for a coffee using slack
https://github.com/cedriccabessa/coffeeconnection
coffee python slack
Last synced: about 2 months ago
JSON representation
Connect people for a coffee using slack
- Host: GitHub
- URL: https://github.com/cedriccabessa/coffeeconnection
- Owner: CedricCabessa
- License: mit
- Created: 2018-06-17T17:54:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T07:44:27.000Z (over 3 years ago)
- Last Synced: 2025-05-14T02:52:52.430Z (about 1 year ago)
- Topics: coffee, python, slack
- Language: Python
- Size: 67.4 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coffeeconnection
Connect people for a coffee using slack
This script can be use in a daily cronttab to match a pair of 2 people for a
coffee (or any other beverage).
`coffeeconnection` will get all the members of a slack channel, and during a time
period (1w by default), every day a few people will be called to have a coffee
together.
At the end of the week, every members of the channel should have participate to 1
coffee party. (People can join the channel during the week)
## Installation
Install the dependencies and the package with pipenv.
```
$ pipenv install --deploy --system
```
Write a crontab:
```
$ cat /etc/cron.d/coffeeconnection
0 16 * * 1-5 myuser /usr/local/bin/coffeeconnection
```
## Configuration
You have to copy `coffeeconnection.ini`:
```
$ mkdir -p ~/.config/coffeeconnection/
$ cp coffeeconnection.ini ~/.config/coffeeconnection/coffeeconnection.ini
```
Edit it with your slack credential
## Make it nice to you
The sentences the bot says come from the file `coffeeconnection/niceties.txt`.
You should edit it to make it more fun :-)
## Hack
[](https://travis-ci.org/CedricCabessa/coffeeconnection)
## Development
### Run tests
We use `tox` to run our tests (including static analysis with `flake8` and
coding style)
Run all the test with
```bash
tox
```
### Coding style
It is handled by [black](https://github.com/psf/black)
To apply it (requires Python >= 3.6):
```bash
pipenv run ci/blackify
```