Closed geekingfrog closed 4 years ago
Upon receiving s/foo/bar/, the bot repost the last message with the substitution (if there is a match). Perhaps try to do that on the last n messages?
s/foo/bar/
n
Arbitrary regex can be a problem, so run that in a separate thread with timeout (and limited allocation if possible?).
Done
Upon receiving
s/foo/bar/
, the bot repost the last message with the substitution (if there is a match). Perhaps try to do that on the lastn
messages?Arbitrary regex can be a problem, so run that in a separate thread with timeout (and limited allocation if possible?).