aboutsummaryrefslogtreecommitdiff
path: root/single_shot.py
Commit message (Collapse)AuthorAgeFilesLines
* support dbus loop frontend for geldschieberbotFlorian Fischer2025-11-061-103/+0
|
* make Geldschieberbot a context managerFlorian Fischer2023-09-181-18/+17
| | | | | | | | | | | | | | | | 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.
* extract reading and sending messages into separate scriptFlorian Fischer2023-08-111-0/+104