niksart / cembot Goto Github PK
View Code? Open in Web Editor NEWCollective Expenses Management bot. Telegram bot that administrates finances between groups and/or people.
License: MIT License
Collective Expenses Management bot. Telegram bot that administrates finances between groups and/or people.
License: MIT License
Write EN.py in languages package
In every command strip the spaces: example,
/given 3 @fgaz0 description
will be fine
To be used in groups. See Architecture
As an additional parameter to the cembot command.
Each database instance should only use one currency. Currency conversions are out of scope.
telepot is unmaintained. there are some forks, but i think it's better to switch to something else entirely.
some options here: https://core.telegram.org/bots/samples#python
Money must be a number > 0
Once cli parameters start growing, it'd be good to use a configuration file instead. (we should still support getting secrets from env variables)
Log levels, configurable verbosity...
Use the standard logging library
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"]
)
Add notification (a telegram message) when a person charges you some expenses
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
Provide a question-answer interface
Commands will mostly be used as /command @user
, and not /command <obscure numeric user id>
, so we'll have to translate the @-username (if it begins with a @ in the first place) to an user id
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.