aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.py b/main.py
index c7a78d0..cd86330 100755
--- a/main.py
+++ b/main.py
@@ -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()