mirror of
https://github.com/alterware/aw-bot.git
synced 2025-11-18 09:02:07 +00:00
fix: mislabeled log calls
This commit is contained in:
@@ -187,7 +187,7 @@ async def is_message_a_duplicate(message):
|
|||||||
return
|
return
|
||||||
except discord.Forbidden:
|
except discord.Forbidden:
|
||||||
logger.error(
|
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:
|
except discord.HTTPException as e:
|
||||||
logger.error("An error occurred: %s", 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."
|
"The heat death of the universe has come and gone. We exist in a post-time void. Nothing remains but this message."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.error("Channel not found. Check the OFFTOPIC_CHANNEL variable.")
|
||||||
"Debug: Channel not found. Check the OFFTOPIC_CHANNEL variable."
|
|
||||||
)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("An error occurred in heat_death task: %s", 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)
|
message = random.choice(schizo_messages)
|
||||||
await channel.send(message)
|
await channel.send(message)
|
||||||
else:
|
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)
|
@tasks.loop(hours=24)
|
||||||
async def share_dementia_image():
|
async def share_dementia_image():
|
||||||
@@ -207,9 +205,7 @@ async def setup(bot):
|
|||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
await channel.send(DEMENTIA_URL)
|
await channel.send(DEMENTIA_URL)
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.error("Channel not found. Check the OFFTOPIC_CHANNEL variable.")
|
||||||
"Debug: Channel not found. Check the OFFTOPIC_CHANNEL variable."
|
|
||||||
)
|
|
||||||
|
|
||||||
await migrate_all_users(bot)
|
await migrate_all_users(bot)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user