meta icon indicating copy to clipboard operation
meta copied to clipboard

Keyword Alerts

Open HassanAbouelela opened this issue 2 years ago • 2 comments

What feature are you proposing?

Send a DM to members when the bot detects a certain keyword in the incoming messages.

What is your justification for the proposed feature?

This was something that was suggested before, but I was against it previously for the following reasons:

  1. It is easy to abuse this system to stalk/follow people. It's not something we should enable.
  2. It is possible to create alerts which fire on way too many messages (for instance just watching the letter e), which can create issues with ratelimits.

The ratelimits thing is probably not an issue, we have a pretty high cap. Both of these issues were addressed by the following suggestion in community meta:

I thought about this for a while and I believe most concerns would be alleviated if we hard-coded a list of keywords that could be monitored, and limited the monitoring to code blocks.

  • https://discord.com/channels/267624335836053506/429409067623251969/1030793506295386203

I think that's a valid compromise that could enable a nice feature. I still do have some reservations about the number of alerts, and would like to trial this feature out without sending alerts (just log statistics), but we can hash out implementation details later.

HassanAbouelela avatar Nov 07 '22 16:11 HassanAbouelela