Skip to content

Commit

Permalink
Update erm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahCxrest authored Nov 19, 2024
1 parent 0c493f2 commit 8dc2e6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erm.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,9 @@ async def check_whitelisted_car():
async def iterate_prc_logs():
# This will aim to constantly update the PRC Logs
# and the relevant storage data.
logging.warning("[ITERATE] Iteration Started")
async for item in bot.settings.db.find({'ERLC': {'$exists': True}}):
logging.warning("[ITERATE] Servers Found")
try:
guild = await bot.fetch_guild(item['_id'])
except discord.HTTPException:
Expand Down Expand Up @@ -1045,6 +1047,9 @@ async def iterate_prc_logs():
color=GREEN_COLOR if item.type == 'join' else RED_COLOR
)
)

logging.warning("[ITERATE] Completed task!")


@iterate_prc_logs.before_loop
async def anti_fetch_measure():
Expand Down

0 comments on commit 8dc2e6b

Please sign in to comment.