Skip to content

🦋 Improve !catalog option in nostr-bot #1842

Description

@Tirodem

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions