mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
reset request counts in rate limiter every day at midnight
This commit is contained in:
@@ -15,7 +15,7 @@ defmodule PlantIdDiscordBot.Cog.PlantNet do
|
||||
"""
|
||||
def id(interaction) do
|
||||
case RateLimiter.check_limit(interaction.guild_id) do
|
||||
{:limit_exceeded, value} ->
|
||||
{:limit_exceeded, _} ->
|
||||
@api.create_interaction_response(interaction, %{
|
||||
type: 4,
|
||||
data: %{
|
||||
|
||||
Reference in New Issue
Block a user