mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
Feat/error logs (#16)
* added list of tasks to achieve * update deps * update elixir version in CI/CD pipeline * update todo with branch push checks * underscores separation of large numbers * update elixir version and deps * add basic module docs * remove IO.inspect call * check if list is empty rather than traversing list for length * revert empty list code * duration tests * add mime type tests * use logger instread of inspect, remove todos * replace list length check with Enum.empty * replace list length check with !Enum.empty? * numbers readability fix by using underscores on large numbers * iucn parser replaced case with multiclause function and added test * replace map and join with map_join * fix multiple spec issues where map() must be inside a list
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
defmodule PlantIdDiscordBot.Cog.Info do
|
||||
@moduledoc """
|
||||
Functions for using the /info application command.
|
||||
|
||||
Returns a message embed of application commands available to the user.
|
||||
"""
|
||||
use Nostrum.Consumer
|
||||
import Nostrum.Struct.Embed
|
||||
alias PlantIdDiscordBot.Utils
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
defmodule PlantIdDiscordBot.Cog.PlantNetMessage do
|
||||
@moduledoc """
|
||||
Functions for sending and receiving data from PLantNet
|
||||
"""
|
||||
require Logger
|
||||
|
||||
use Nostrum.Consumer
|
||||
@@ -49,7 +52,6 @@ defmodule PlantIdDiscordBot.Cog.PlantNetMessage do
|
||||
nil
|
||||
end
|
||||
|
||||
# TODO improve composition
|
||||
if saved_images do
|
||||
try do
|
||||
prepare_images(saved_images)
|
||||
|
||||
Reference in New Issue
Block a user