aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* handle cars cmd special casesFlorian Fischer2019-06-091-0/+7
| | | | | * print error if cars cmds couldn't be parsed * print message if no cars are registered
* support special users in transactionsFlorian Fischer2019-06-091-2/+2
| | | | | This change allows "schieb" and "zieh" commands to interact with balances from non human users like car balances.
* add new car commands and make tanken aware of carsFlorian Fischer2019-06-092-16/+120
| | | | | | | | | | | | | | | Cars are names associated to a service charge. They are stored in the state file in a dict called "cars". Each car has its own balance from which money can be pulled or pushed. Because of this cars and users can't share a name. Service charges are calculated per drive and split among all drivers similar to fuel cost. If a driver is not known by geldschieberbot the recipient of the "tanken" cmd is held accountable and has to collect the service charge manually just like fuel cost. NOTE: This change breaks geldschieberbot if the state file does not contain the field "cars" !!! You have to add it manually !!!
* return error if distance is <= 0Florian Fischer2019-06-091-0/+2
|
* don't fail if input is no valid jsonFlorian Fischer2019-06-091-1/+5
|
* fix loading of stateFlorian Fischer2019-06-091-3/+1
|
* rename and fix sender lookup in _tankenFlorian Fischer2019-06-091-5/+5
|
* add suppport for legacy data stores and scheduled exec refactoringFlorian Fischer2018-12-281-32/+95
| | | | | | | * monthly commands with days > 28 are executed on 28. * bug fixes in cancel * add support for python3 < 3.7 (date.fromisoformat) * add support for cmds in changes (cancel)
* implement cancel commandFlorian Fischer2018-12-131-0/+15
|
* refactor and initial implementation of scheduled_cmdsFlorian Fischer2018-12-132-244/+344
| | | | | | | | | | | * Now the state is stored in a single file at $GSB_STATE_FILE. * Fixed some typos. * Commands are now functions in a dict. The sender_number, the args, and the whole message are passed to the command functions. * for each scheduled command a name, the command args and the timestamp of the last execution are stored. * datetime.timedelta objects are used to check if a scheduled cmd should run
* also split amount on german ,Florian Fischer2018-12-061-1/+3
|
* strip lines in messageFlorian Fischer2018-11-101-1/+1
|
* fix empty message checkFlorian Fischer2018-10-091-1/+1
|
* fix --json optionFlorian Fischer2018-10-091-1/+1
|
* receive json outputFlorian Fischer2018-10-051-1/+1
|
* parse groupId correctFlorian Fischer2018-10-051-1/+1
|
* fix MessageFlorian Fischer2018-10-051-1/+1
|
* Merge branch 'newgen'Florian Fischer2018-10-051-49/+12
|\
| * fix sender var nameFlorian Fischer2018-10-051-1/+1
| |
| * use json output of signal-cliFlorian Fischer2018-10-051-50/+13
| |
* | fix dry runFlorian Fischer2018-10-051-1/+1
|/
* add dry runFlorian Fischer2017-12-231-5/+16
|
* only declare last_change once globalFlorian Fischer2017-11-271-4/+2
|
* always clear last_change before making a new changesFlorian Fischer2017-11-271-0/+14
|
* fix "fuck"Florian Fischer2017-11-271-6/+11
|
* add rewind command "fuck"Florian Fischer2017-11-271-12/+56
|
* fix splitFlorian Fischer2017-11-111-1/+1
|
* fix splitFlorian Fischer2017-11-111-2/+2
|
* add split featureFlorian Fischer2017-11-091-53/+101
| | | | | | update help string improve error messages improve identation
* adjust tanken to cents and improve itFlorian Fischer2017-11-092-11/+20
| | | | | | | | geldschieberbot: convert commandline to lower case tanken: fix spelling tanken: do less int conversions tanken: return ints
* fix function name and formattingFlorian Fischer2017-11-091-4/+4
|
* ignore log filesFlorian Fischer2017-11-091-1/+2
|
* call abs() before to_euro()Florian Fischer2017-11-091-2/+2
|
* don't use floatsFlorian Fischer2017-11-091-5/+22
| | | | THIS BREAKS THE OLD BALANCES!!!
* fix string formatFlorian Fischer2017-11-091-4/+4
|
* fix tanken hopfully the last timeFlorian Fischer2017-11-092-7/+13
|
* mention everyone and don't handle recipientFlorian Fischer2017-11-091-5/+7
|
* improve run scriptFlorian Fischer2017-11-091-8/+18
| | | | | | * Keep only non empty logs * Make a tar for every week * Check if GDB_USER is set
* add tanken featureFlorian Fischer2017-11-092-16/+81
|
* include recipient in balance feedbackFlorian Fischer2017-10-251-1/+1
|
* make argument positions of zieh|schieb identicalFlorian Fischer2017-10-251-6/+14
|
* remove round and use string.formatFlorian Fischer2017-10-251-3/+2
|
* fix syntaxFlorian Fischer2017-10-251-1/+1
|
* add gib nimm aliases & round numbersFlorian Fischer2017-10-251-18/+13
|
* remove executable bit from config.shFlorian Fischer2017-08-201-0/+0
|
* source config.sh in run.shFlorian Fischer2017-08-202-1/+4
|
* make config.sh.sample executableFlorian Fischer2017-08-201-0/+0
|
* add seperate msgs directoryFlorian Fischer2017-08-201-2/+5
|
* reword config in readmeFlorian Fischer2017-08-201-3/+3
|
* Revert "rename config.sh.sample"Florian Fischer2017-08-201-0/+0
| | | | This reverts commit 34c6b391ecfd48af470a3a6f593667fd4a9fe036.