/add: time parsing + link uniqueness + admin-only #45

Closed
opened 2026-04-04 06:45:13 +02:00 by shoko · 0 comments
Owner

Objective

Update /add command with time parsing, link uniqueness, and admin permission.

Changes

Time Parsing

  • Parse time in format HH:MM after date
  • Example: /add Fix bug https://github.com/foo/bar april 15 14:30
  • If last arg matches HH:MM and second-to-last is a date, treat as time
  • Before adding, check if link already exists in room's active bounties
  • If duplicate found, reject with error message including the existing bounty ID

Admin-Only

  • Only admins can use /add
  • Non-admin users get: ⛔ Only admins can perform this action.

Updated Usage

/add <text> [link] [date] [time]
Example: /add Fix bug https://github.com/foo/bar april 15 14:30

Dependencies

  • #43 (service layer must be done first)
## Objective Update `/add` command with time parsing, link uniqueness, and admin permission. ## Changes ### Time Parsing - Parse time in format `HH:MM` after date - Example: `/add Fix bug https://github.com/foo/bar april 15 14:30` - If last arg matches `HH:MM` and second-to-last is a date, treat as time ### Link Uniqueness - Before adding, check if link already exists in room's active bounties - If duplicate found, reject with error message including the existing bounty ID ### Admin-Only - Only admins can use /add - Non-admin users get: `⛔ Only admins can perform this action.` ### Updated Usage ``` /add <text> [link] [date] [time] Example: /add Fix bug https://github.com/foo/bar april 15 14:30 ``` ## Dependencies - #43 (service layer must be done first)
shoko added this to the Phase 2 milestone 2026-04-04 06:45:13 +02:00
shoko added the telegram-botphase-2 labels 2026-04-04 06:45:13 +02:00
han was assigned by shoko 2026-04-04 06:45:13 +02:00
shoko closed this issue 2026-04-04 12:59:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/jigaido#45