!todo command provides a complete task management system within WhatsApp. Create, view, complete, and delete tasks easily.
Subcommands
Add Tasks
Create new tasks in your todo list.Single Task
Multiple Tasks
Add multiple tasks at once by separating them with commas:From TodoHandler.ts:35-36, tasks are split by commas and trimmed:
List Tasks
View all your current tasks with their completion status.Indicates an incomplete task
Indicates a completed task
Empty List
Mark Tasks Complete
Mark a specific task as done using its number from the list.Delete Tasks
Permanently remove a task from your list.From TodoHandler.ts:102, delete operations include completed tasks:
Clear Completed Tasks
Remove all completed tasks at once to clean up your list.Complete Workflow
Parameters
Add one or more tasks. Tasks can be separated by commas for bulk addition.Required: Task description(s)Example:
!todo add Buy milk, Call dentistDisplay all tasks with their completion status.Arguments: NoneExample:
!todo listMark a task as completed.Required: Task number (from list)Example:
!todo done 1Permanently delete a task.Required: Task number (from list)Example:
!todo delete 2Remove all completed tasks.Arguments: NoneExample:
!todo clearError Handling
No Subcommand
Invalid Subcommand
Missing Task Number
Invalid Task Number
No Task Content
Implementation Details
Task Indexing
Tasks are displayed with 1-based indexing for user-friendliness, but stored with database IDs internally. From TodoHandler.ts:63-65:Batch Addition
The comma-separated batch addition feature processes each task individually (TodoHandler.ts:44-46):Completion Tracking
Completed tasks remain in the list (marked with ✓) until you run!todo clear.
Are todos private to me?
Are todos private to me?
Todos are associated with the chat context. In direct messages with the bot, they’re private to you. In group chats, they’re shared with the group.
Can I edit a task after creating it?
Can I edit a task after creating it?
The current implementation doesn’t support editing. You can delete and re-add a task instead:
What happens to completed tasks?
What happens to completed tasks?
Completed tasks stay in your list (marked with ✓) until you run
!todo clear. This lets you review what you’ve accomplished before cleaning up.Can I uncomplete a task?
Can I uncomplete a task?
The current implementation doesn’t support marking tasks as incomplete. If you accidentally marked something done, you can delete it and add it again.