plant database links wording

This commit is contained in:
Owen
2025-01-10 21:06:11 +01:00
parent 61adb18be7
commit 0494ad7ff5
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
**0.2.0-alpha**
**0.2.0**
- Implemented the ability to ID attachments without using application commands
- Wording changes for plant database links
- `Threat Status` changed to `Conservation Status`
**0.1.4**
+1 -1
View File
@@ -82,7 +82,7 @@ defmodule PlantIdDiscordBot.PlantNet.Parser do
best_result_iucn_category = best_result["iucn"]["category"]
score = round(best_result["score"] * 100) |> Integer.to_string()
"My best guess is **#{best_guess_name}** with a confidence of **#{score}%**. Common names include **#{Enum.join(best_result["species"]["commonNames"], ", ")}**.\n\n[GBIF](<#{best_result["gbif_url"]}>) | [PFAF](<#{best_result["pfaf_url"]}>) | [POWO](<#{best_result["powo_url"]}>)#{if best_result_iucn_category, do: "\n\nThreat status: #{best_result_iucn_category}"}#{get_alternatives(other_results)}"
"My best guess is **#{best_guess_name}** with a confidence of **#{score}%**. Common names include **#{Enum.join(best_result["species"]["commonNames"], ", ")}**.\n\nSpecies info from plant databases:\n[GBIF](<#{best_result["gbif_url"]}>) | [PFAF](<#{best_result["pfaf_url"]}>) | [POWO](<#{best_result["powo_url"]}>)#{if best_result_iucn_category, do: "\n\nThreat status: #{best_result_iucn_category}"}#{get_alternatives(other_results)}"
end
@spec generate_gbif_url(map()) :: map()
+1 -1
View File
@@ -4,7 +4,7 @@ defmodule PlantidDiscordBot.MixProject do
def project do
[
app: :plantid_discord_bot,
version: "0.2.0-alpha",
version: "0.2.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps()