Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

hacklabkyiv/moneybot

Repository files navigation

moneybot is a Slack bot that grabs donation stats and posts reminders to DM to pay monthly donation.

Now implemented

Pullers

  • βœ… Privat
  • πŸ”œ Monobank

Pushers

  • βœ… CSV
  • βœ… Slack
  • πŸ”œ GDrive

Configuration

Make sure you added a bot as a user goind through Slack Bot Users Guide.

General

⏱️ 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

Slack

πŸ“† 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.

Installation

🐳 Docker

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.

πŸ’» Locally

$ pip3 install -Ur requirements.txt
$ python3 ./app.py

License

see ./LICENSE

About

πŸ€‘ a bot that reminds hackerspace users about to pay the monthly fee

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /