image download and save ran as async task

This commit is contained in:
Owen
2024-12-16 20:45:30 +01:00
parent 6916e0cc09
commit 727706bb2c
10 changed files with 102 additions and 43 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import Config
config :plantid_discord_bot,
image_path: "priv/static"
image_path: "priv/static",
plantnet_api_base_url: "https://my-api.plantnet.org/v2"
import_config "#{config_env()}.exs"
-1
View File
@@ -4,7 +4,6 @@ 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",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
-1
View File
@@ -3,7 +3,6 @@ import Config
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",
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_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",
fileserver_url: "http://localhost:4321",
port: 4321,
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",