request limiter

This commit is contained in:
Owen
2024-12-15 22:34:59 +01:00
parent 7cf2e79c3e
commit 81c95c28b2
12 changed files with 177 additions and 48 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import Config
config :plantid_discord_bot,
start_time: DateTime.utc_now()
start_time: DateTime.utc_now(),
image_folder: "priv/static"
import_config "#{config_env()}.exs"
+1 -1
View File
@@ -1,10 +1,10 @@
import Config
config :plantid_discord_bot,
guild_request_limit_per_day: 20,
guild_ids: [1_002_507_312_159_797_318],
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
image_folder: "priv/static",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
+1 -1
View File
@@ -1,10 +1,10 @@
import Config
config :plantid_discord_bot,
guild_request_limit_per_day: 20,
guild_ids: [],
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
image_folder: "priv/static",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
-1
View File
@@ -4,7 +4,6 @@ config :plantid_discord_bot,
guild_ids: [1_002_507_312_159_797_318],
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
image_folder: "priv/static",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
+1 -1
View File
@@ -1,10 +1,10 @@
import Config
config :plantid_discord_bot,
guild_request_limit_per_day: 20,
guild_ids: [1_002_507_312_159_797_318],
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
image_folder: "priv/static",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",