mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 06:05:54 +00:00
fix: mislabeled log calls
This commit is contained in:
@@ -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)
|
||||
|
||||
10
bot/tasks.py
10
bot/tasks.py
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user