FabricMC / kotlin-fabric-discord-bot

The discord bot previously used in the fabric discord server.
MIT License
5 stars 7 forks source link

Ping System #21

Open TheGlitch76 opened 3 years ago

TheGlitch76 commented 3 years ago

Since K9 has been removed we could use a replacement for its ping system. As a reminder, the ping system for k9 was essentially that you could register an arbitrary regex, which k9 would run on every message and if it matched send you a DM with a link to the message that triggered it.

I would recommend the following restrictions, compared to what k9 had:

gdude2002 commented 3 years ago

This is actually a fairly decent idea, honestly. I was going to use RE2 for safer regexes, but that'd still be fairly burdensome — and it's pretty much only a niche requirement.

This will have to come after the database rewrite, though.

ramidzkh commented 3 years ago

To be honest, I disagree with the restrictions proposed. A regex expression has proven to work with the previous bot, even if people set ridiculous pings such as /./. Also, although a cool-off period may seem appealing, it would have to be configurable by users, but that that point its easier to just send every message through. I'd rather have 7 pings overnight and reply to each one, than only get 2 and miss the other 5

modmuss50 commented 3 years ago

I dont think we really need this feature, feel free to disagree with me, but I feel like it was used to "alert" people to possible drama/whatever so they can chime in their view.

ramidzkh commented 3 years ago

Most people has pings for their names, or projects they worked on.

image In this extract of the original pings dump, there's only two which looks kind of suspicious, but nothing drama related

TheGlitch76 commented 3 years ago

My intention wasn't for only getting two pings if your project was mentioned a bunch, but instead as a filter to avoid abuse. The idea is that to 95% of the users it feels exactly the same

On Tue, Nov 17, 2020, 2:25 PM ramidzkh notifications@github.com wrote:

Most people has pings for their names, or projects they worked on.

[image: image] https://user-images.githubusercontent.com/19631324/99443356-d1ec5580-296e-11eb-86d9-ba33e5898b00.png In this extract of the original pings dump, there's only two which looks kind of suspicious, but nothing drama related

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FabricMC/fabric-discord-bot/issues/21#issuecomment-729181116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU6AEAQUMK5ALOCRBAAXQ3SQLL4XANCNFSM4TXO4MIA .

SilverAndro commented 3 years ago

The main possible issue I see with it is that inconsistent spacing may mean you miss out on someone mentioning something

If I have project A B-C but someone says AB-C, I don't receive a ping, and trying to build the "simple" system to accommodate all the possible variations is bound to lead to issues

With a regex based system I can simply match 0 or more spaces and not miss any messages that should ping, or similar misspellings

dexman545 commented 3 years ago

I agree with ramid, the system has the most use in knowing when projects you work on are being discussed - like if a user has a question about something. Fabric isn't so small everyone knows who did what project and can send a ping their way when they are needed.

If the fear is drama, you could make it more curated, but I see no reason to increase the moderation burden and place a barrier to the system.