aboutsummaryrefslogtreecommitdiff
path: root/geldschieberbot.py
Commit message (Collapse)AuthorAgeFilesLines
* ignore old obscure changes in the state fileFlorian Fischer2023-08-101-8/+12
|
* introduce dataclasses for the passed dataFlorian Fischer2023-08-101-328/+442
| | | | | | Refactor all implicit dictionaries into explicit data classes. This makes the code more explicit, easier to check for mypy and overall more maintainable.
* add new sum alias 'balance'Florian Fischer2022-09-041-0/+1
|
* geldschieberbot: support transaction with multiple recipientsFlorian Fischer2022-07-261-19/+42
| | | | | | | | | | | | | | All recipients receive amount making transactionswith multiple receipients a shortcut for posting the same transaction with a changing recipient. !schieb 5 alice bob is equivalent to !schieb 5 alice !schieb 5 bob Aliases are supported as well.
* geldschieberbot: support choosing the entries in a summaryFlorian Fischer2022-07-261-1/+4
|
* add option to quote cmd messagesFlorian Fischer2022-07-251-11/+36
|
* support aliases in tanken commandFlorian Fischer2022-07-061-9/+48
| | | | Move tanken code into Gelschieberbot to simply expand aliases in drives.
* add alias supportFlorian Fischer2022-07-061-1/+79
| | | | | | | Aliases can be used where one or multiple persons names can be used. An alias is expanded to the list of users it represents. For commands implicitly including one user (e.g., 'split') the expansion of the implicit user can be prevented.
* remove else after returnFlorian Fischer2022-07-061-2/+2
|
* fix wording of car command helpFlorian Fischer2022-07-061-1/+1
|
* add type hintFlorian Fischer2022-07-061-1/+1
|
* geldschieberbot: refactor bot into a classFlorian Fischer2022-07-041-744/+767
| | | | | | | | | | Geldschieberbot beeing a class gets rid of the mutable global variables for dry_run and record_changes. Misc cleanups: * Cleanup recording changes * Add doc-strings * Uppercase globals
* tanken: cleanup codeFlorian Fischer2022-07-041-0/+2
| | | | | | | * Add type annotations * Use meaningfull variable names * Add doc-strings * Remove she-bang line from non-executable file
* geldschieberbot: add module doc stringFlorian Fischer2022-07-041-0/+1
|
* geldschieberbot: drop support for legacy state file layoutFlorian Fischer2022-04-191-18/+0
|
* geldschieberbot: use explicit open encodingFlorian Fischer2022-04-191-2/+2
|
* geldschieberbot: also send attachments for scheduled commandsFlorian Fischer2022-04-191-1/+2
|
* fix attachment commandFlorian Fischer2021-11-181-1/+1
|
* geldschieberbot: remove double check of sender in splitFlorian Fischer2021-11-181-5/+1
|
* geldschieberbot: add export-state cmdFlorian Fischer2021-11-181-138/+167
| | | | | | | | | | Add new command sending the state as an attachment. To allow this we refactor the return type of the command functions intead of returning a tuple(msg, err) they now return a dictionary. This is more flexible the members are position independent and it allows us to add arbitraty new return values like 'attachment'. If 'attachment' is present in the result of a command it will be attached to the message send.
* don't crash when sending a message returns non 0Florian Fischer2021-11-021-1/+1
|
* [geldschieberbot] remove/use unused variables in scheduling codeFlorian Fischer2021-09-091-2/+1
|
* [geldschieberbot] use max instead of if blockFlorian Fischer2021-09-091-3/+1
|
* [geldschieberbot] doc strings must be beneath the thing they describeFlorian Fischer2021-09-091-3/+6
|
* [geldschieberbot] don't clutter the global name spaceFlorian Fischer2021-09-091-6/+6
|
* [geldschieberbot] close the state file after readingFlorian Fischer2021-09-091-1/+2
|
* make formatFlorian Fischer2021-09-091-2/+5
|
* add thanks command eastereggFlorian Fischer2021-09-091-0/+11
|
* add seperate full-sum command and print only the senders sum per defaultFlorian Fischer2021-07-011-2/+16
|
* [cars] add remove commandFlorian Fischer2021-04-181-0/+20
|
* improve code qualityFlorian Fischer2021-03-291-60/+59
|
* run yapfFlorian Fischer2021-03-291-56/+97
|
* reactions have dataMessage bot message:nullFlorian Fischer2021-03-291-1/+1
| | | | | found in: msgs/msg2021-03-29T10:16:13,490034090+02:00.log {"envelope":{"source":"+4917631649204","sourceDevice":1,"timestamp":1617005771916,"dataMessage":{"timestamp":1617005771916,"message":null,"expiresInSeconds":0,"viewOnce":false,"reaction":{"emoji":"🙉","targetAuthor":"+491639755599","targetSentTimestamp":1617005686468,"isRemove":false},"mentions":[],"attachments":[],"groupInfo":{"groupId":"7QkOgvlLmc0hPYxfZvDd0JeB88A16kmU2s83/+1yDP0=","type":"DELIVER"}}}} # Please enter the commit message for your changes. Lines starting
* support !split person amountFlorian Fischer2021-03-251-6/+15
|
* fix change recording for transfer cmdFlorian Fischer2021-03-241-3/+6
|
* s/Transfere/TransferFlorian Fischer2021-03-241-3/+3
|
* don't fail if dataMessage field is not present in jsonFlorian Fischer2021-02-171-1/+1
|
* allow sum cmd for carsFlorian Fischer2020-10-171-1/+1
|
* support rewinding specific changesFlorian Fischer2020-09-141-3/+14
|
* indent change parts in list-changesFlorian Fischer2020-09-141-5/+5
|
* add list-changes commandFlorian Fischer2020-09-141-0/+58
|
* prohibit pure numerical namesFlorian Fischer2020-08-251-1/+7
|
* prevent crashes when money should be transfered to the issuerFlorian Fischer2020-04-281-7/+15
|
* 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
|