codinglab-io / discord-bot

Discord bot for Codinglab's server.
https://discord.com/invite/codinglab-174169014568878080
MIT License
19 stars 14 forks source link

quoiFeur game doesn't mute correctly #58

Closed neolectron closed 1 year ago

neolectron commented 1 year ago

Problem

The quoiFeur game has 1/20 chance to respond with coubeh, it mutes you whenever it happens. The muting strategy goes with adding a role Muted to the user, which we remove after 15min. This have many edge-cases such as:

Solution

Use native timeout feature by discord (found by @smaiill on discord, thx). It would solve many of the issues above, while also simplifying the code. Here is the link to discord.js documentation for that. image

Drawbacks

I think there is no such thing as beeing timeout in only one channel. But considering the low duration of the timeout, and the amount of benefits, I think it's a good tradeoff.

neolectron commented 1 year ago

fixed by #61