bot icon indicating copy to clipboard operation
bot copied to clipboard

Edit eval message instead of deleting and re-sending

Open Robin5605 opened this issue 2 years ago • 2 comments

I've noticed recently that the bot deletes the eval response message and re-sends a new one if a user edits their code and presses the re-run reaction button. This adds a lot of noise and is distracting when used in #python-discussion. Is there anything preventing us from simply editing the eval response message?

Robin5605 avatar Dec 22 '23 19:12 Robin5605

Technically, there isn't anything that would prevent us from doing it.

However, when there's a high throughput in the channel, getting a "refresher" instead of having the old eval burried in a pile of newly sent messages can redirect attention to what's trying to be demonstrated by the code evaluation.

Unless someone is spamming the eval command, which can be remediated by a cooldown, I'm not entirely sure about editing the old output.

shtlrs avatar Dec 23 '23 13:12 shtlrs