feat: enhance group duty pin command functionality
All checks were successful
CI / lint-and-test (push) Successful in 25s
Docker Build and Release / build-and-push (push) Successful in 56s
Docker Build and Release / release (push) Successful in 9s

- Updated the `pin_duty_cmd` to handle cases where no message ID is found by sending a new duty message, pinning it, saving the pin, and scheduling the next update.
- Improved error handling for message sending and pinning operations, providing appropriate replies based on success or failure.
- Enhanced unit tests to cover the new behavior, ensuring proper functionality and error handling in various scenarios.
This commit is contained in:
2026-02-25 14:43:19 +03:00
parent 3c3a2c507c
commit 8a80af32d8
8 changed files with 286 additions and 9 deletions

12
webapp/package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "duty-teller-webapp",
"type": "module",
"scripts": {
"test": "vitest run",
"test:watch": "vitest"
},
"devDependencies": {
"happy-dom": "^15.0.0",
"vitest": "^2.0.0"
}
}