added logging to end and start stream
authorGeorgios Atheridis <atheridis@tutamail.com>
Wed, 11 May 2022 17:03:25 +0000 (17:03 +0000)
committerGeorgios Atheridis <atheridis@tutamail.com>
Wed, 11 May 2022 17:03:25 +0000 (17:03 +0000)
skgyorugo/auto_messages/queuehelp.py [new file with mode: 0644]
skgyorugo/tools/smart_start_stream_time.py

diff --git a/skgyorugo/auto_messages/queuehelp.py b/skgyorugo/auto_messages/queuehelp.py
new file mode 100644 (file)
index 0000000..41bb449
--- /dev/null
@@ -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)
index 82585258a44e0fca33bf93e5fc098863ff5a404b..b4a430ba022d2c7e85c816381fd5a31c5642fb79 100644 (file)
@@ -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()