mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
plant database links wording
This commit is contained in:
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
**0.2.0-alpha**
|
**0.2.0**
|
||||||
|
|
||||||
- Implemented the ability to ID attachments without using application commands
|
- 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**
|
**0.1.4**
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ defmodule PlantIdDiscordBot.PlantNet.Parser do
|
|||||||
best_result_iucn_category = best_result["iucn"]["category"]
|
best_result_iucn_category = best_result["iucn"]["category"]
|
||||||
score = round(best_result["score"] * 100) |> Integer.to_string()
|
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
|
end
|
||||||
|
|
||||||
@spec generate_gbif_url(map()) :: map()
|
@spec generate_gbif_url(map()) :: map()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ defmodule PlantidDiscordBot.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :plantid_discord_bot,
|
app: :plantid_discord_bot,
|
||||||
version: "0.2.0-alpha",
|
version: "0.2.0",
|
||||||
elixir: "~> 1.16",
|
elixir: "~> 1.16",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps()
|
deps: deps()
|
||||||
|
|||||||
Reference in New Issue
Block a user