Giter Site home page Giter Site logo

frugal-s-police's Introduction

AUto BIlling Police

The story

My friend, Paul, has a subscription to the following services: Dazn, Netflix, Amazon Prime, Spotify, and ExpressVPN. He is on a tight budget for the next three months since he just moved to Tokyo for work. So he wants to keep his Dazn subscription only for the hot period of MMA that last one month. But he forgot to unsubscribe after the months passed, and Dazn took 3000 yen out of his account. He wasn’t happy because he thought he could use that 3000 yen to survive one weekend. But instead, he spent them on a service he won’t need.

The solution

I thought I would write a line bot to help Paul keep track of his online subscriptions and how much they cost him. First, Paul will tell the bot how long he wants to keep the subscriptions alive. Then, when the lifespan of a subscription set by Paul is expired, the bot will remind Paul to unsubscribe.

Functionalities

  • Users can set a monthly budget for subscriptions.
  • Users can specify/edit monthly cost, start date, end date for a subscription
  • Every month the bot can compute the total amount spent on online subscriptions
  • The bot warns for months when the total cost of subscriptions exceeds the budget.
  • The bot informs each subscription when the payday is near

Deploy

./deploy.sh

Messages

  • string are case insensitive
  • currency is JPY
  • format for dates is YYYYMMDD

set budget

yen 'amount'
  • yen: integer
    • Maximum amount the user plans to spend monthly on online services

add subscription

eye 'name' 'cost' 'duedate' 'lastmonth'

Track due dates (monthly) of subscription

  • name: string
  • cost: integer
  • duedate: YYYYMMDD
  • lastmonth: YYYMM
    • The last month the user wishes to pay for the service.
    • the bot will inform you to unsubscribe before the due date in this month

remove subscription

del 'name'

Stop tracking the subscription with given name and remove it from db.

  • name: string

frugal-s-police's People

Contributors

faustind avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.