Overall
For glamorous demo purpose and future real use, let's add a feature in nostr-bot to search in a more practical way into the catalog.
As Nostr doesn't have pagination, it'll be helpful.
Detail
Add options to !catalog command :
!catalog s:searchterm : the s option will only show product having searchterm in their title, short description or long description
!catalog t:type : the t option will only show product with the said type, types being :
- digital (without delivery shipping component)
- ship (with delivery shipping component)
- free (amount = 0)
- pwyw (pay what you want)
- event (event ticket)
- preorder (future release date with preorder option)
- sub (subscription)
- tip (donation)
catalog m:mode : the m option will change the display mode :
m:light : provide the product name, price and slug
m:mid : provide the product name, price, slug and url ; serves as default mode for !catalog
m:full : provide the product name, short description, long description, price, web URL
Allow to combine parameters.
For example : !catalog s:bitcoin t:event t:free m:light
Overall
For glamorous demo purpose and future real use, let's add a feature in nostr-bot to search in a more practical way into the catalog.
As Nostr doesn't have pagination, it'll be helpful.
Detail
Add options to
!catalogcommand :!catalog s:searchterm: thesoption will only show product havingsearchtermin their title, short description or long description!catalog t:type: thetoption will only show product with the said type, types being :catalog m:mode: themoption will change the display mode :m:light: provide the product name, price and slugm:mid: provide the product name, price, slug and url ; serves as default mode for !catalogm:full: provide the product name, short description, long description, price, web URLAllow to combine parameters.
For example :
!catalog s:bitcoin t:event t:free m:light