chevyboys / Mizuchi

This is a custom bot for the climbers court community on discord
GNU Affero General Public License v3.0
4 stars 6 forks source link

[Bug] in Rate limiting on #question-queue and /ask command #166

Open LanBySea opened 1 year ago

LanBySea commented 1 year ago

Describe the bug Rate limiting is not working with the /ask command.

To Reproduce Steps to reproduce the behavior:

  1. In any channel submit a question with /ask
  2. Observe that it is submitted and appears in #question-queue channel
  3. In any channel use the /ask command a second time before the 6 hour window refreshes
  4. Observe that the second question is submitted and appears in #question-queue channel

Expected behavior Warn message ought to be sent to the user telling them that they need to wait x amount of time before the next question can be submitted through /ask. Where x is 6 hours minus the amount of time since they last asked a question.

Screenshots

Screenshot 2023-09-16 at 9 21 47 PM

Workarounds: No known workarounds

MetaData (please complete the following information):

Additional context Previously triggered odd behavior, see https://discord.com/channels/443421134109671424/841491239697514536/1152772360018071672 for screenshot of previous issue.