moneybot is a Slack bot that grabs donation stats and posts reminders to DM to pay monthly donation.
- β Privat
- π Monobank
- β CSV
- β Slack
- π GDrive
Make sure you added a bot as a user goind through Slack Bot Users Guide.
β±οΈ update_interval - how often should bot pull and push updates
ποΈ db_prefix - what folder will DB be in
𧻠log_level - maximal level of log records
π΅ monthly_donate - how much money users should donate monthly
π general_date - a day when to post to #general
β±οΈ general_time - a time when to post to #general
π private_date - a day when to post to DM
β±οΈ private_time - a time when to post to DM
π general_text - a text for #general
π private_text - a text for DM
π members - a dictionary of Slack usernames and tokens (usually real names) which bot will be searching in descriptions of payments. Tokens should be space separated.
Install docker
and then:
$ git clone https://github.com/dethoter/moneybot && cd moneybot
$ cp config.yml.template config.yml
$ docker build -t moneybot .
$ docker run -d --name moneybot --restart=unless-stopped -it -v $PWD:/app -v $PWD/data:/app/data moneybot
This Dockerfile
from repo contains setup for RaspberryPi.
You can modify FROM field in order to target your distro.
$ pip3 install -Ur requirements.txt
$ python3 ./app.py
see ./LICENSE