| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | export the plot command | Florian Fischer | 2025-11-06 | 1 | -0/+23 |
| | | |||||
| * | export the minimize command from the geldschieberbotminimize | Florian Fischer | 2025-11-06 | 1 | -0/+25 |
| | | |||||
| * | partially revert 2f2b51e40c7027d80bf4a6741f2063e2c224f938 | Florian Fischer | 2023-09-18 | 1 | -1/+2 |
| | | | | | | Load the state when constructing the bot to ensure a usable object is returned by __init__. | ||||
| * | make Geldschieberbot a context manager | Florian Fischer | 2023-09-18 | 1 | -4/+7 |
| | | | | | | | | | | | | | | | | | Previosuly there was the problem that the state was saved when the bot object was destructed. When there was an unhandled exception it was possible for the builtins to be cleanedup before the bot's destructor was executed resulting in yet another exception because the open builtin was no longer available. This is no longer possible when the bot is used as a context manager python guarantees that the __exit__ code is executed before leaving the with block. This allows us prevent the state from beeing saved when there was an exception to prevent invalid states. | ||||
| * | convert the sender to a name in the messages of scheduled commands | Florian Fischer | 2023-09-18 | 1 | -3/+4 |
| | | |||||
| * | fix wrong arguments to MessageContext when running scheduled cmds | Florian Fischer | 2023-08-29 | 1 | -1/+1 |
| | | | | | Fixes: 26831dca32c471415b1afa470ac8dbfd1fd348a6 | ||||
| * | extract reading and sending messages into separate script | Florian Fischer | 2023-08-11 | 1 | -80/+1 |
| | | |||||
| * | switch from WTFPL to GPL3 or later | Florian Fischer | 2023-08-11 | 1 | -0/+16 |
| | | |||||
| * | extract the models and utility function into separate source files | Florian Fischer | 2023-08-11 | 1 | -88/+2 |
| | | |||||
| * | extract message sending from the Geldschieberbot class | Florian Fischer | 2023-08-11 | 1 | -52/+74 |
| | | | | | | | | | | | This makes the class more flexible and allows for different means of sending the replies back by executing a subprocess or using dbus/jsonrpc. Also remove the never used group send command. Make the Geldschieberbot constructor parameters mandatory and let the caller handle the configuration. | ||||
| * | remove global variables using the environment | Florian Fischer | 2023-08-11 | 1 | -18/+34 |
| | | | | | | | | | | | | | Previously the geldschieberbot module used global variables retrieved from the environment for its configuration. This is not very flexible and can lead to problems when using the module from other python code. Therefore make all configuration Geldschieberbot specific and pass the values to the constructor. If no values are provided fallback to the environment. This change is fully backwards compatible. | ||||
| * | ignore old obscure changes in the state file | Florian Fischer | 2023-08-10 | 1 | -8/+12 |
| | | |||||
| * | introduce dataclasses for the passed data | Florian Fischer | 2023-08-10 | 1 | -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 Fischer | 2022-09-04 | 1 | -0/+1 |
| | | |||||
| * | geldschieberbot: support transaction with multiple recipients | Florian Fischer | 2022-07-26 | 1 | -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 summary | Florian Fischer | 2022-07-26 | 1 | -1/+4 |
| | | |||||
| * | add option to quote cmd messages | Florian Fischer | 2022-07-25 | 1 | -11/+36 |
| | | |||||
| * | support aliases in tanken command | Florian Fischer | 2022-07-06 | 1 | -9/+48 |
| | | | | | Move tanken code into Gelschieberbot to simply expand aliases in drives. | ||||
| * | add alias support | Florian Fischer | 2022-07-06 | 1 | -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 return | Florian Fischer | 2022-07-06 | 1 | -2/+2 |
| | | |||||
| * | fix wording of car command help | Florian Fischer | 2022-07-06 | 1 | -1/+1 |
| | | |||||
| * | add type hint | Florian Fischer | 2022-07-06 | 1 | -1/+1 |
| | | |||||
| * | geldschieberbot: refactor bot into a class | Florian Fischer | 2022-07-04 | 1 | -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 code | Florian Fischer | 2022-07-04 | 1 | -0/+2 |
| | | | | | | | | * Add type annotations * Use meaningfull variable names * Add doc-strings * Remove she-bang line from non-executable file | ||||
| * | geldschieberbot: add module doc string | Florian Fischer | 2022-07-04 | 1 | -0/+1 |
| | | |||||
| * | geldschieberbot: drop support for legacy state file layout | Florian Fischer | 2022-04-19 | 1 | -18/+0 |
| | | |||||
| * | geldschieberbot: use explicit open encoding | Florian Fischer | 2022-04-19 | 1 | -2/+2 |
| | | |||||
| * | geldschieberbot: also send attachments for scheduled commands | Florian Fischer | 2022-04-19 | 1 | -1/+2 |
| | | |||||
| * | fix attachment command | Florian Fischer | 2021-11-18 | 1 | -1/+1 |
| | | |||||
| * | geldschieberbot: remove double check of sender in split | Florian Fischer | 2021-11-18 | 1 | -5/+1 |
| | | |||||
| * | geldschieberbot: add export-state cmd | Florian Fischer | 2021-11-18 | 1 | -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 0 | Florian Fischer | 2021-11-02 | 1 | -1/+1 |
| | | |||||
| * | [geldschieberbot] remove/use unused variables in scheduling code | Florian Fischer | 2021-09-09 | 1 | -2/+1 |
| | | |||||
| * | [geldschieberbot] use max instead of if block | Florian Fischer | 2021-09-09 | 1 | -3/+1 |
| | | |||||
| * | [geldschieberbot] doc strings must be beneath the thing they describe | Florian Fischer | 2021-09-09 | 1 | -3/+6 |
| | | |||||
| * | [geldschieberbot] don't clutter the global name space | Florian Fischer | 2021-09-09 | 1 | -6/+6 |
| | | |||||
| * | [geldschieberbot] close the state file after reading | Florian Fischer | 2021-09-09 | 1 | -1/+2 |
| | | |||||
| * | make format | Florian Fischer | 2021-09-09 | 1 | -2/+5 |
| | | |||||
| * | add thanks command easteregg | Florian Fischer | 2021-09-09 | 1 | -0/+11 |
| | | |||||
| * | add seperate full-sum command and print only the senders sum per default | Florian Fischer | 2021-07-01 | 1 | -2/+16 |
| | | |||||
| * | [cars] add remove command | Florian Fischer | 2021-04-18 | 1 | -0/+20 |
| | | |||||
| * | improve code quality | Florian Fischer | 2021-03-29 | 1 | -60/+59 |
| | | |||||
| * | run yapf | Florian Fischer | 2021-03-29 | 1 | -56/+97 |
| | | |||||
| * | reactions have dataMessage bot message:null | Florian Fischer | 2021-03-29 | 1 | -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 amount | Florian Fischer | 2021-03-25 | 1 | -6/+15 |
| | | |||||
| * | fix change recording for transfer cmd | Florian Fischer | 2021-03-24 | 1 | -3/+6 |
| | | |||||
| * | s/Transfere/Transfer | Florian Fischer | 2021-03-24 | 1 | -3/+3 |
| | | |||||
| * | don't fail if dataMessage field is not present in json | Florian Fischer | 2021-02-17 | 1 | -1/+1 |
| | | |||||
| * | allow sum cmd for cars | Florian Fischer | 2020-10-17 | 1 | -1/+1 |
| | | |||||
| * | support rewinding specific changes | Florian Fischer | 2020-09-14 | 1 | -3/+14 |
| | | |||||
