108 Commits

Author SHA1 Message Date
owenrees 9aa41d29f6 Feature/diseases (#19)
* add disease photo options

* basic disease application command, no real parsing other than map to string
2025-12-08 16:32:16 +01:00
owenrees 3e6116423a Feature/projects (#18)
* add up to 5 attachments

* multiclause function event handler

* fix incorrect Cog calls

* add default param as "all" so we can start differentiating the types of identifications in the future - projects / diseases

* abstract message sending

* overwrite global application commands

* pass message from projects to message sending and id functions
2025-12-08 13:17:18 +01:00
owenrees 0eddf04678 Projects and Diseases placeholder application commands (#17)
* fix module name in backup

* save projects to persistent_term

* retrieve projects on bot startup

* remove commented out code

* register project autocomplete

* placeholder text for project

* placeholder disease command
2025-12-08 08:53:48 +01:00
owenrees 02372f2076 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
2025-12-06 23:41:59 +01:00
Owen 3d3059e77f change service commands 2025-02-05 22:23:30 +01:00
Owen 7dd2774994 update GH actions to account for the bot running as a service 2025-02-05 22:03:11 +01:00
Owen b49525697f add bot token to config for server restart 2025-01-31 22:57:14 +01:00
Owen d5589096e0 add bot token to config for server restart 2025-01-31 22:56:57 +01:00
Owen a1dfdef449 update ubunutu build version in gh actions 2025-01-31 22:31:04 +01:00
Owen 099c98d0d1 update logger webhook backend 2025-01-16 10:11:55 +01:00
Owen 18b1c02733 upgrade logger webhook backend 2025-01-15 23:10:05 +01:00
Owen 6563ea6c5b doctest update 2025-01-15 22:02:04 +01:00
Owen 8da0f33faa basic error handling test 2025-01-15 21:59:39 +01:00
Owen 1a27b2bdb7 remove id application command 2025-01-15 21:59:39 +01:00
Owen c9e0c2db0b dev env error log to console included metadata 2025-01-15 21:59:39 +01:00
Owen ac513edac8 update error messages and get guild name 2025-01-15 21:59:39 +01:00
Owen 617b64eae2 reworked aliases 2025-01-15 21:59:39 +01:00
Owen 62e8ae869a update invite link 2025-01-15 13:47:03 +01:00
Owen 663c175da7 hotfix for get requests 2025-01-14 16:36:36 +01:00
Owen 8f8b52740e updated installation 2025-01-14 09:52:37 +01:00
Owen 8e31c04f44 updated error message 2025-01-13 23:37:53 +01:00
Owen 14ec01cbfd reduced code for dev and test env 2025-01-13 23:34:06 +01:00
Owen 096878fb0d info image size text update 2025-01-13 23:10:42 +01:00
Owen 490ab7103a info command text updates 2025-01-13 21:01:42 +01:00
Owen 0009a82460 updated tests 2025-01-13 15:57:33 +01:00
Owen 3d0dc324a6 custom rate limits 2025-01-13 15:57:33 +01:00
Owen 683c4c4de2 groundwork for custom request limits, with 10 requests now standard 2025-01-13 15:57:33 +01:00
Owen 1e1e74a35d fetch ratelimiter metrics 2025-01-13 15:57:33 +01:00
Owen 498c5ebd6f refactoring of modules 2025-01-13 15:57:33 +01:00
Owen 1c84a97fb8 status message fixed 2025-01-13 15:57:33 +01:00
Owen b806b78b23 do not show common name text when no common names exist - either nil or empty list 2025-01-13 15:57:33 +01:00
Owen 9fe768b8c4 do not show common name text when no common names exist 2025-01-13 15:57:33 +01:00
Owen d68f4abf4b create message fixes, fixing errors related to channel_id 2025-01-10 22:23:43 +01:00
Owen 680e40f6e6 v0.2.1 2025-01-10 22:19:39 +01:00
Owen 71d728fb1a remove no alternatives found text 2025-01-10 22:18:27 +01:00
Owen f4c213e7b3 save metrics before switching releases 2025-01-10 22:11:31 +01:00
Owen 8a9c848e28 updated to reflect IUCN category changes 2025-01-10 21:19:44 +01:00
Owen bcdccd4b76 IUCN data as full sentences, not abbreviations 2025-01-10 21:16:16 +01:00
Owen 0494ad7ff5 plant database links wording 2025-01-10 21:06:11 +01:00
Owen 61adb18be7 update release info 2025-01-10 20:07:07 +01:00
Owen cd65779142 reply to message and take only first 5 attachments 2025-01-10 20:07:07 +01:00
Owen e6103df1ae consumes attachments for ID 2025-01-10 20:07:07 +01:00
Owen 529630b85d change to webhook env variables 2025-01-10 12:32:33 +01:00
Owen 84bbafb441 updated tests 2025-01-10 11:48:15 +01:00
Owen 8665f1c854 metrics sent to discord via CRON job 2025-01-10 11:17:41 +01:00
Owen 68df89b5e0 added first and last request times per guild 2025-01-10 09:57:39 +01:00
Owen 463771a204 typo correction 2025-01-09 15:15:01 +01:00
Owen bbc964a3a5 metrics write to disk CRON job 2025-01-09 15:13:54 +01:00
Owen 5c0c5ae960 metrics plugged into interaction responses 2025-01-09 15:06:39 +01:00
Owen c2a442da63 ignore priv subdirectories 2025-01-09 14:47:40 +01:00