Minehut / Meta

Report bugs or issues and request features and updates for Minehut
31 stars 21 forks source link

Use bot to enforce 24h cooldown in #servers and #marketplace #381

Open honkling opened 3 years ago

honkling commented 3 years ago

Feature request

Checklist

Platform Discord

Describe the feature Use the bot to enforce the 24 hour cooldown in the servers and marketplace channels. If a user tries to talk during the 24 hour cooldown, it'll delete their message and message them telling them why their message was deleted and how long they have to wait til they can talk again. May also want to tell them to check the pinned messages in the channel

With this in mind, it may be useful to remove the actual Discord slow mode from the channels if this takes place, because otherwise it'd just be in the way.

How the feature is useful Enforces our 24h cooldown rule, reduces load on moderators (...is this even moderated?), encourages checking the pinned messages and following formats (though indirectly)


Use 👍 and 👎 reactions to indicate you agree or disagree with this suggestion! Feel free to discuss the idea in the comments.

jellz commented 3 years ago

Just want to mention this feature was on my TODO list, which I forwarded to Facto and the team prior to leaving

Sniped commented 3 years ago

I'd imagine this could be done by utilizing the already built-in cooldown manager and creating a listener for it, maybe it could also be configurable per channel in a guild.

jellz commented 3 years ago

Can make a !slowmode command that sets it per channel and stores the cooldown in DB. Using the existing cooldown manager could be problematic because it all resets when the bot is restarted, and the command should be as accurate as possible. It might be time to hook the bot up to a Redis instance. I’m personally aware of some other features that would benefit from having an easy cache in Redis so they don’t need to use in-house caching (potentially leading to memory leaks).

On Sat, 14 Nov 2020 at 02:46, Facto notifications@github.com wrote:

I'd imagine this could be done by utilizing the already built-in cooldown manager and creating a listener for it, maybe it could also be configurable per channel in a guild.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Minehut/Meta/issues/381#issuecomment-726837886, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ4YAWMS5SR56ZZ2H4Y2NLSPVIFHANCNFSM4TUCROZA .

DaRealMinecraftexpert commented 3 years ago

I know there's a Few bots that can Add custom Slowmode Durations, I just don't know any off the Top of my head. There may be one that goes to 24h too.

ahoulton commented 3 years ago

Discord bots can actually do custom slow-mode durations, this will have to be looked into.

jellz commented 3 years ago

Discord bots can actually do custom slow-mode durations, this will have to be looked into.

Bots can define custom slow mode durations, yes, but only up to 6 hours just like the official client.

ahoulton commented 3 years ago

Discord bots can actually do custom slow-mode durations, this will have to be looked into.

Bots can define custom slow mode durations, yes, but only up to 6 hours just like the official client.

Hmm, I'm sure that you could set cooldowns way higher than the client's limit unless this got updated.

Sniped commented 3 years ago

Discord bots can actually do custom slow-mode durations, this will have to be looked into.

Bots can define custom slow mode durations, yes, but only up to 6 hours just like the official client.

Hmm, I'm sure that you could set cooldowns way higher than the client's limit unless this got updated.

Pretty sure the client just follows the API's limitations