From 937f4957b022ec5fff0c18a46558321cd039babf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20B=C3=BCchner?= Date: Wed, 7 May 2025 19:05:04 +0200 Subject: [PATCH] remove message limit --- queuebot/bot.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/queuebot/bot.py b/queuebot/bot.py index 87fe423..fb71d04 100644 --- a/queuebot/bot.py +++ b/queuebot/bot.py @@ -216,15 +216,16 @@ class Queuebot(Plugin): self.log.debug(f"Checking notices or {room_alias} ( {room_id} )") if self.check_plugin_filter_mute(plugin_name=plugin_name.name,queue=plugin_name.queue, notice=notice[0], room_id=room_id, room_alias=room_alias): self.log.debug(f"new notice from {plugin_name.name}.{plugin_name.queue} to {room_alias}") - self.log.debug(f"sent count: {sent_count}") - if sent_count >= 5: - self.log.debug(f"sent count reached: {sent_count} sleeping 60 secs") - if await asyncio.sleep(60): - sent_count = 0 - await self.client.send_notice(room_id, notice[0]) - else: - await self.client.send_notice(room_id, notice[0]) - sent_count += 1 + #self.log.debug(f"sent count: {sent_count}") + #if sent_count >= 5: + # self.log.debug(f"sent count reached: {sent_count} sleeping 60 secs") + # if await asyncio.sleep(60): + # sent_count = 0 + # await self.client.send_notice(room_id, notice[0]) + #else: + # await self.client.send_notice(room_id, notice[0]) + await self.client.send_notice(room_id, notice[0]) + #sent_count += 1 except Exception as e: self.log.debug(f"Error sending notice to {room_id}: {e}") self.log.debug(traceback.format_exc())