Create nostr-bot on Bootik to prototype Metabootik's network #73
Labels
coyote-review
need coyote review / estimation before going further
Donator:NPR
enhancement
New feature or request
reference : https://github.com/Xeift/Nostr-Bot
short story :
steps :
1/ create a log entry on admin/nostr to display last events on bootik's npub
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"
The text was updated successfully, but these errors were encountered: