From 4f1e84ba8e14fd92cce37f5cbbd1aa5702650fe2 Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 26 Apr 2023 17:31:51 +1000 Subject: [PATCH] auto-delete error messages --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index fa84b36..efaa8b9 100755 --- a/bot.py +++ b/bot.py @@ -78,7 +78,9 @@ class BotClient(discord.Client): calc = await self._calculate(args) await message.reply(content=calc.strip()) except Exception as e: - await message.reply(content="```\n" + str(e) + "\n```") + await message.reply( + content="```\n" + str(e) + "\n```", delete_after=30 + ) case _: _log.info(f"Unrecognised command {command}")