Skip to content

peterhass/abrechnomat_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AbrechnomatBot

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.

Usage

  • 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)

Development Setup

  • 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

Deployment

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published