file server started in supervisor tree

This commit is contained in:
Owen
2024-12-15 22:48:47 +01:00
parent 81c95c28b2
commit 1b1fa19fff
8 changed files with 30 additions and 9 deletions
+1 -3
View File
@@ -8,9 +8,7 @@ defmodule PlantIdDiscordBot.Cog.PlantNet do
ID a plant from up to 5 images of organs.
"""
def id(interaction) do
guild_id = interaction.guild_id
case RateLimiter.check_limit(guild_id) do
case RateLimiter.check_limit(interaction.guild_id) do
{:limit_exceeded, value} ->
@api.create_interaction_response(interaction, %{
type: 4,