auto-delete error messages
This commit is contained in:
parent
225cac02c0
commit
4f1e84ba8e
4
bot.py
4
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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user