From 1fbb0d9a592778c542c751b8cb95e7850259160c Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Wed, 11 May 2022 17:03:25 +0000 Subject: [PATCH] added logging to end and start stream --- skgyorugo/auto_messages/queuehelp.py | 9 +++++++++ skgyorugo/tools/smart_start_stream_time.py | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 skgyorugo/auto_messages/queuehelp.py diff --git a/skgyorugo/auto_messages/queuehelp.py b/skgyorugo/auto_messages/queuehelp.py new file mode 100644 index 0000000..41bb449 --- /dev/null +++ b/skgyorugo/auto_messages/queuehelp.py @@ -0,0 +1,9 @@ +from aptbot.bot import Message, Commands, Bot + +COOLDOWN = 8 * 60 +END_TIME = 2 * 60 * 60 + + +def main(bot: Bot, message: Message): + msg = "IF YOU WANT TO PLAY WITH PEKS TYPE: ?join ------------------------------------------------------------------------------- You can find more info here: https://i.imgur.com/hqW5OOn.png" + bot.send_privmsg(message.channel, msg) diff --git a/skgyorugo/tools/smart_start_stream_time.py b/skgyorugo/tools/smart_start_stream_time.py index 8258525..b4a430b 100644 --- a/skgyorugo/tools/smart_start_stream_time.py +++ b/skgyorugo/tools/smart_start_stream_time.py @@ -35,10 +35,12 @@ MAX_OFF_STREAM_MARGIN = 60 * 60 def end_stream(): + logger.info("STREAM ENDED") clean_queue.clean_queue() def start_stream(): + logger.info("STREAM STARTED") clean_queue.clean_queue() -- 2.30.2