aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* support !split person amountFlorian Fischer2021-03-252-10/+25
|
* fix change recording for transfer cmdFlorian Fischer2021-03-242-3/+20
|
* s/Transfere/TransferFlorian Fischer2021-03-242-11/+11
|
* replace deprecated receive --json flag with global --output=jsonFlorian Fischer2021-02-171-1/+1
|
* don't fail if dataMessage field is not present in jsonFlorian Fischer2021-02-171-1/+1
|
* allow sum cmd for carsFlorian Fischer2020-10-172-1/+14
|
* support rewinding specific changesFlorian Fischer2020-09-142-3/+51
|
* indent change parts in list-changesFlorian Fischer2020-09-142-15/+15
|
* add list-changes commandFlorian Fischer2020-09-142-0/+137
|
* prohibit pure numerical namesFlorian Fischer2020-08-252-1/+24
|
* prevent crashes when money should be transfered to the issuerFlorian Fischer2020-04-282-7/+33
|
* add testsFlorian Fischer2020-03-155-0/+907
|
* fix recording of cars pay changesFlorian Fischer2020-01-091-2/+2
|
* fix typo s/triggert/triggered/Florian Fischer2019-11-271-1/+1
|
* seperate cars from users in summariesFlorian Fischer2019-10-181-7/+26
|
* fix type (thanks lolo)Florian Fischer2019-09-081-1/+1
|
* mention proportion in cars pay outputFlorian Fischer2019-09-081-1/+2
|
* fix conversion from cent to euro for floatsFlorian Fischer2019-09-081-1/+1
|
* replace String.format with f-stringsFlorian Fischer2019-09-081-24/+22
|
* add car pay commandFlorian Fischer2019-09-081-1/+66
|
* improve transferFlorian Fischer2019-09-081-20/+18
| | | | | | | * fix old return codes * restore record_changes * call transaction not with cents because transaction will convert it to cents again
* don't append \n in one but not all summariesFlorian Fischer2019-09-081-3/+3
|
* support transactions with special users as senderFlorian Fischer2019-09-081-3/+3
| | | | A transfer including a car as source needs this
* code de-duplicationFlorian Fischer2019-09-081-14/+9
|
* move positive number check to to_centFlorian Fischer2019-09-081-16/+8
|
* don't break on empty messagesFlorian Fischer2019-06-241-0/+3
|
* implement transfer cmdFlorian Fischer2019-06-151-1/+68
| | | | | | | Alice: !transfer 5 bob charlie => alice: zieh bob 5 => alice: schieb charlie 5 => bob: zieh charlie 5 (charlie: schieb bob 5)
* improve cars error and usageFlorian Fischer2019-06-101-5/+8
|
* change sending of messagesFlorian Fischer2019-06-101-104/+83
| | | | | | each cmd now must return a message and an error message. If the error message is None the message will be send otherwise the error message
* add state file to gitignoreFlorian Fischer2019-06-101-0/+1
|
* strip whitespace from linesFlorian Fischer2019-06-101-1/+1
|
* 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
| |