From 0494ad7ff5ea0d8fb35432b1e75313bba368eed8 Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 10 Jan 2025 21:06:11 +0100 Subject: [PATCH] plant database links wording --- CHANGELOG.md | 4 +++- lib/plantnet/parser.ex | 2 +- mix.exs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 398ac28..5d0928d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/lib/plantnet/parser.ex b/lib/plantnet/parser.ex index d5b75a5..a94afc6 100644 --- a/lib/plantnet/parser.ex +++ b/lib/plantnet/parser.ex @@ -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() diff --git a/mix.exs b/mix.exs index 2696252..b44997e 100644 --- a/mix.exs +++ b/mix.exs @@ -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()