aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add early daemon prototypedaemonFlorian Fischer2023-08-111-0/+131
|
* move selection and sending messages from GeldschieberbotFlorian Fischer2022-11-081-55/+81
| | | | | | | | In order to use the Geldschieberbot with a daemon we must extract sending and message selection from the Geldschieberbot class. In order to not break current 'on-shot' setups the geldschieberbot.py file compensates the extraction of configuration and message handling.
* pipenv: install pytest and update environmentFlorian Fischer2022-11-043-247/+190
| | | | Adapt the pylintrc file to the newer version of pylint.
* add missing test statusFlorian Fischer2022-11-021-0/+1
| | | | Fixes: 60f7088
* add new sum alias 'balance'Florian Fischer2022-09-042-2/+11
|
* geldschieberbot: support transaction with multiple recipientsFlorian Fischer2022-07-262-21/+107
| | | | | | | | | | | | | | 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
|
* test: add test for transactions with unknown recipientFlorian Fischer2022-07-261-0/+7
|
* add option to quote cmd messagesFlorian Fischer2022-07-252-12/+37
|
* test: disable pylint style checks for test codeFlorian Fischer2022-07-251-1/+2
|
* support aliases in tanken commandFlorian Fischer2022-07-063-66/+72
| | | | Move tanken code into Gelschieberbot to simply expand aliases in drives.
* add alias supportFlorian Fischer2022-07-062-1/+175
| | | | | | | 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
|
* test: use f-stringsFlorian Fischer2022-07-041-52/+38
|
* test: sanely name test state filesFlorian Fischer2022-07-045-28/+27
|
* add python development toolingFlorian Fischer2022-07-045-0/+890
|
* add TODOFlorian Fischer2022-07-041-0/+10
|
* 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
* fixup! test: add explicit encoding to openFlorian Fischer2022-07-041-1/+1
|
* test: add explicit encoding to openFlorian Fischer2022-07-041-3/+3
|
* tanken: cleanup codeFlorian Fischer2022-07-042-19/+31
| | | | | | | * 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
|
* test.py: make formatFlorian Fischer2022-04-191-0/+18
|
* 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.
* test.py: don't use subprocess.run(check=True)Florian Fischer2021-11-181-2/+8
| | | | | Using check=True will cause subprocess.run to raise an exception and our own failure handling code like printing what happend will not run.
* 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
|
* [test] explicitly pass check=True to subprocess.runFlorian Fischer2021-09-091-0/+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
|
* [test] remove useless f-stringsFlorian Fischer2021-09-091-4/+4
|
* [tanken] specify expected ErrorsFlorian Fischer2021-09-091-1/+1
|
* [tanken] remove unused variableFlorian Fischer2021-09-091-1/+0
|
* make formatFlorian Fischer2021-09-093-8/+17
|
* add thanks command eastereggFlorian Fischer2021-09-092-0/+23
|
* add seperate full-sum command and print only the senders sum per defaultFlorian Fischer2021-07-012-2/+31
|
* [cars] add remove commandFlorian Fischer2021-04-182-1/+37
|
* improve code qualityFlorian Fischer2021-03-291-60/+59
|
* remove duplicate test methodsFlorian Fischer2021-03-291-44/+0
|
* run yapfFlorian Fischer2021-03-292-152/+244
|
* 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