Added logs folder

This commit is contained in:
Choco
2024-03-20 22:05:00 +08:00
parent 6517ae0611
commit f713276c6f
7 changed files with 52 additions and 21 deletions

View File

@@ -120,8 +120,8 @@ class Task(commands.Cog):
try:
await report_channel.send(content=f"Report Before: <t:{round(datetime.timestamp(datetime.now()))}:F>", file=errorFile)
except Exception as e:
func.logger.error(f"Report could not be sent (Reason: {e})")
func.logger.error(f"Report could not be sent!", exc_info=e)
func.ERROR_LOGS.clear()
async def setup(bot: commands.Bot):
await bot.add_cog(Task(bot))