Giter VIP home page Giter VIP logo

cembot's People

Contributors

fgaz avatar niksart avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cembot's Issues

internationalization

Make a descriptive label for each message. Substitute the label with the message written in a language L where L is the language of user's locale (you can find it in language_code in msg["from"])

find members of a group

Approccio:
1- il bot viene aggiunto
2- il bot chiede ad ognuno di presentarsi (nel frattempo traccia i membri che scrivono nella tabella belongings (appartenenze)
3- se tutti non si sono presentati e uno aggiunge una spesa scrivi un warning con scritto: "non tutti si sono presentati, prosegui lo stesso?", se tutti si sono presentati aggiungi senza fare complimenti

La tabella belongings è così strutturata:
1- group_id
2- user_id
primary key (group, id_member)

Ti metti in ascolto degli eventi di join e leave per aggiornare la tabella delle appartenenze al gruppo.

Written in italian cause I'm in a hurry...byeeeeee

Use a configuration file

Once cli parameters start growing, it'd be good to use a configuration file instead. (we should still support getting secrets from env variables)

Proper logging

Log levels, configurable verbosity...

Use the standard logging library

Notifications

Add notification (a telegram message) when a person charges you some expenses

Make the currency configurable

As an additional parameter to the cembot command.

Each database instance should only use one currency. Currency conversions are out of scope.

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.