fix: mislabeled log calls

This commit is contained in:
2025-10-16 21:07:09 +02:00
parent cf540f426b
commit 0615b2fd6d
2 changed files with 4 additions and 8 deletions

View File

@@ -187,7 +187,7 @@ async def is_message_a_duplicate(message):
return
except discord.Forbidden:
logger.error(
f"Bot does not have permission to read messages in {channel.name}."
"Bot does not have permission to read messages in %s", channel.name
)
except discord.HTTPException as e:
logger.error("An error occurred: %s", e)

View File

@@ -185,9 +185,7 @@ async def setup(bot):
"The heat death of the universe has come and gone. We exist in a post-time void. Nothing remains but this message."
)
else:
logger.debug(
"Debug: Channel not found. Check the OFFTOPIC_CHANNEL variable."
)
logger.error("Channel not found. Check the OFFTOPIC_CHANNEL variable.")
except Exception as e:
logger.error("An error occurred in heat_death task: %s", e)
@@ -198,7 +196,7 @@ async def setup(bot):
message = random.choice(schizo_messages)
await channel.send(message)
else:
logger.debug("Debug: Channel not found or schizo_messages is empty.")
logger.error("Channel not found or schizo_messages is empty.")
@tasks.loop(hours=24)
async def share_dementia_image():
@@ -207,9 +205,7 @@ async def setup(bot):
for _ in range(3):
await channel.send(DEMENTIA_URL)
else:
logger.debug(
"Debug: Channel not found. Check the OFFTOPIC_CHANNEL variable."
)
logger.error("Channel not found. Check the OFFTOPIC_CHANNEL variable.")
await migrate_all_users(bot)