remove message limit

This commit is contained in:
Nils Büchner 2025-05-07 19:05:04 +02:00
parent 79a08e7d14
commit 937f4957b0

View file

@ -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
#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])
else:
await self.client.send_notice(room_id, notice[0])
sent_count += 1
#sent_count += 1
except Exception as e:
self.log.debug(f"Error sending notice to {room_id}: {e}")
self.log.debug(traceback.format_exc())