Telegram bot for bill splitting. Supports an unlimited amount of debtors/creditors on a bill. Calculates as little transactions as possible to pay everybody out.
- Add it to a group (works best if you give it admin privileges)
- Send
/add_payment
see on it should be used /revert_payment
to remove an added payment- Use
/bill_stats
to see the current amount and needed transactions /close_bill
after all payments are done (new bill starts immediately after that)
- Create bot in BotFather to get the bot api token
cp .env.example .env.local
- Fill in fields in
.env.local
- Set up env variables for current session:
source .env.local
- Run:
iex -S mix
- ssh into server
git clone https://github.com/peterhass/abrechnomat_bot.git
MIX_ENV=prod mix deps.get && MIX_ENV=prod mix release
- Setup database if needed:
DB_CREATE=true ./bin/abrechnomat_bot start_iex
Maybe helpful: How to depoy phoenix application on ubuntu