diff options
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() |
