!note command lets you save important information, snippets, and ideas directly in WhatsApp with full search capabilities.
Subcommands
Save Notes
Store text notes for future reference.Notes can be of any length and contain any text. The entire content after
save is stored as a single note.List Notes
View all your saved notes with previews.Long notes are automatically truncated to 50 characters with
... appended. Use !note view to see the full content.Empty Notes List
View Full Note
Display the complete content of a specific note.Delete Notes
Permanently remove a note.Search Notes
Find notes containing specific keywords.No Results
Search is case-insensitive and matches partial words. The query “meet” would match notes containing “meeting”, “Meet”, or “MEET”.
Common Use Cases
Parameters
Save a new note.Required: Note content (any text)Example:
!note save Important meeting tomorrow at 3pmDisplay all notes with previews (50 char limit).Arguments: NoneExample:
!note listShow the full content of a specific note.Required: Note number (from list)Example:
!note view 3Delete a note permanently.Required: Note number (from list)Example:
!note delete 2Find notes containing specific text.Required: Search query (one or more words)Example:
!note search passwordError Handling
No Subcommand
Invalid Subcommand
Missing Content
Invalid Note Number
Missing Search Query
Implementation Details
Preview Truncation
From NoteHandler.ts:44-48, notes longer than 50 characters are truncated in list view:Search Implementation
Search results use the same preview format as the list view (NoteHandler.ts:115-120):Note Indexing
Notes are displayed with 1-based indexing (1, 2, 3…) for user-friendliness, but stored with database IDs internally.Are notes private?
Are notes private?
Notes are associated with your user ID (sender), so they’re private to you regardless of which chat you’re in. You can access your notes from any conversation with the bot.
Is there a limit to note length?
Is there a limit to note length?
The code doesn’t impose a hard limit, but extremely long notes should be broken into multiple notes for easier management and searching.
Can I edit a note?
Can I edit a note?
The current implementation doesn’t support editing. To modify a note, view it, delete it, and save a new version:
How does search work?
How does search work?
The search functionality queries the database for notes containing your search term. It’s handled by the NoteService.search() method which performs pattern matching on note content.