diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-10-31 19:38:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-11-06 10:35:13 +0100 |
| commit | 7d7aafeb7aec71eebef5e3e1ec1007d10a9a32ea (patch) | |
| tree | 34dcbe65d61e75c56d03c77d6581750d59ee9be2 /main.py | |
| parent | 7d8f44cff2b53833a5c973c2ef36b8a34db2bd8d (diff) | |
| download | geldschieberbot-7d7aafeb7aec71eebef5e3e1ec1007d10a9a32ea.tar.gz geldschieberbot-7d7aafeb7aec71eebef5e3e1ec1007d10a9a32ea.zip | |
bump python version, install used imports and ignore types for pydbus
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -70,8 +70,9 @@ def single_shot(bot: Geldschieberbot, send_cmd: str, no_quote: bool): def dbus_loop(bot: Geldschieberbot, send_cmd: str, no_quote: bool): """Handle all messages read from stdin and run scheduled commands""" - from pydbus import SessionBus - from gi.repository import GLib, GObject + from pydbus import SessionBus # type: ignore + from gi.repository import GLib + from base64 import b64encode bus = SessionBus() loop = GLib.MainLoop() @@ -109,7 +110,7 @@ def dbus_loop(bot: Geldschieberbot, send_cmd: str, no_quote: bool): bot.save_state() return True - GObject.timeout_add_seconds(30, run_scheduled_cmds) + GLib.timeout_add_seconds(30, run_scheduled_cmds) loop.run() |
