From f536354dad36b61992feef9f8de565510ee4e5a3 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 17 Apr 2017 16:19:06 +0300 Subject: Forward only new messages --- radiodiodibot | 2 ++ 1 file changed, 2 insertions(+) (limited to 'radiodiodibot') diff --git a/radiodiodibot b/radiodiodibot index c52d777..564ac3e 100755 --- a/radiodiodibot +++ b/radiodiodibot @@ -9,6 +9,7 @@ import os from project import botmanager from project import uptimeservice +from project import shoutboxapicommunicator class BotLauncher(object): CONFIG_FILE = "bot.config" @@ -18,6 +19,7 @@ class BotLauncher(object): """Exit gracefully when receiving an interrupt signal""" logging.info("Stopping uptime services (if any)...") uptimeservice.UptimeService.stop_services() + shoutboxapicommunicator.ShoutboxCommunicator.save_largest_id() print("Exiting radiodiodibot...") sys.exit(0) -- cgit v1.3