Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nostr-bot on Bootik to prototype Metabootik's network #73

Closed
Tirodem opened this issue May 25, 2023 · 1 comment
Closed

Create nostr-bot on Bootik to prototype Metabootik's network #73

Tirodem opened this issue May 25, 2023 · 1 comment
Labels
coyote-review need coyote review / estimation before going further Donator:NPR enhancement New feature or request

Comments

@Tirodem
Copy link
Contributor

Tirodem commented May 25, 2023

reference : https://github.com/Xeift/Nostr-Bot

short story :

  • to prepare the future interconnexion between Bootiks via Nostr and a selfcare of customers based on NostR, we need Bootiks to be able to receive messages, process them and answer dynamically

steps :

1/ create a log entry on admin/nostr to display last events on bootik's npub
image

2/ distinguish nostr events (public messages vs private message)

3/ respond "hello world" on public message and "hello you" on private message

4/ identify if the user was already messaged by the bootik's npub, if yes, respond "hello customer" on private message insted of "hello you"

5/ create a "my orders please" command that'll send orders ID related to the sender npub or respond "you're unauthorized" if the number of orders related to this npub is 0

6/ create a "your catalog please" command that'll send a MP with the list of every product (format : product name - product price - product url) to anyone sending a public message to the Bootik npub

7/ create a "share your catalog with me please" command that'll send a MP with the list of every product (format : product name - product short decription - product price - product url) to anymore sending a private message to the Bootik npub if the Bootik's Discovery toggle is "true" ; if "false", send "I don't want to share my catalog with you"

8/ create a "I want to subscribe to your catalog" command from private message ; if Discovery toggle = "false", responds a PM with "I don't want you to subscribe" ; if Discovery toggle = "true", responds a PM with "Ok, sure, I'll do that" then create an entry on a "Discovery npub whitelist" table in database with the requester npub

9/ create an async script that'll send a MP with the list of every product (format : product name - product price - product url) to every npub from the "Discovery npub whietlist" table in database if Discovery toggle = "true"

10/ create a "I want to unsubscribe from your catalog" command from private message, then remove the corresponding entry on a "Discovery npub whitelist" table in database with the requester npub if the npub exist ; if not, responds "Sure, but you're bluffing"

@Tirodem Tirodem added enhancement New feature or request not-mvp coyote-review need coyote review / estimation before going further labels May 25, 2023
@Tirodem
Copy link
Contributor Author

Tirodem commented May 25, 2023

For culture, to keep in mind :

https://bountsr.org/nostr-marketplace/

https://bountsr.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coyote-review need coyote review / estimation before going further Donator:NPR enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant