Zirak/SO-ChatBot

Revoke/undo a command that you invoked?

Opened this issue ยท 3 comments

Is there any reason this is RO only?

I feel that if you invoked the command, then you should be able to revoke it.

Zirak commented

Laziness. You're right that you should be able to undo your own commands, but that's not entirely trivial. It requires both storing who did what and handling ranges. Not terribly difficult, but, as said, lazy.

What about storing them in localStorage, with a max age of 5 minutes or so?

For starters, any chat user can only delete their own messages within 2 minutes of posting anyway, so if there's a storage, it'd be for 2 minutes.