ATLBitLab / abbot-backup

Open-source Abbot (ATL BitLab Bot)
https://atlbitlab.com/abbot
MIT License
1 stars 1 forks source link

Add Abbot to Public Channel #7

Open aidadiaz9 opened 11 months ago

aidadiaz9 commented 11 months ago

Due date = 10/20/23

Add Abbot to your nostr public chat channel.

bnonni commented 11 months ago

The NIP-28 spec doesn't mention "adding" someone to a chat. I think a user must opt into a public chat channel by simply creating a note of 42 - channel message and broadcasting it. Browsing and joining public chat channels or adding someone to a public chat channel would be something a client would implement (i.e. a frontend to show users the list of chats, buttons for joining or adding someone and leaving). Looking at nostrchat.io, you can see when you click the + sign next to Channels, it shows "create" and "join" but no "add." image

I created an ATL BitLab public chat channel to see if the chat channel interface has an "add" button, but it doesn't image.

Solution

The nostr code for this issue will be complete in #6 This issue should handle the frontend changes and the requests

bnonni commented 11 months ago

@w3irdrobot your pieces

Frontend Nostr

Backend (AbbotNostr)

w3irdrobot commented 11 months ago

i'm gonna go with a custom kind of 21021 for abbot to be looking for invites to a channel. this is what is called an "ephemeral event", defined by nip01. essentially relays don't have to store it. so they pass it on to anyone listening for them at the time but anyone that shows up after will not get it.

i can understand the reason for using a replaceable event in the range of 10000 <= n < 20000 as well.

thoughts on using 21021?

w3irdrobot commented 11 months ago

the expected message will have an empty content, a kind of 21021, and a tag e set to the id of the channel to join.

w3irdrobot commented 11 months ago

also, using a similar method as dms do, let's put a p tag in there to reference abbot's pubkey

saucy-tech commented 11 months ago

opened a pr in the dev website repo. added buttons for nostr dm and nostr channel with styling. added form with validation for channel id

Image

w3irdrobot commented 11 months ago

@bnonni i don't think i have access to this frontend site at all

bnonni commented 11 months ago

Yeah, no one does because its our atlbitlab.com website and it isn't public. I'm working on a solution to make it so

  1. the front end code can live in this repo
  2. @saucy-tech can get hacktoberfest credit for his code
bnonni commented 10 months ago

Due date = 10/20/23

Add Abbot to your nostr public chat channel.

Due date:

saucy-tech commented 10 months ago

On Saturday I can work on adding the Telegram front end UI to follow the nostr flow (Telegram DM and Telegram Channel buttons).

bnonni commented 10 months ago

Sounds great! Thanks!