ATLBitLab / abbot-backup

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

DM Abbot #5

Open aidadiaz9 opened 11 months ago

aidadiaz9 commented 11 months ago

Due date = 10/17/23

bnonni commented 11 months ago

General

Backend - Relay-Abbot

Backend - Abbot

Backend - Nostr

bnonni commented 11 months ago

Taking new direction based on discussions with @w3irdrobot. We will be building our own API to run on top of the Telegram Abbot that will handle requests from a Nostr Abbot server. Nostr Abbot will be our nostr relay listener.

bnonni commented 11 months ago

General

  • Need to create notes kind 4 for "encrypted direct message"
  • Follow spec defined for NIP-04
  • Use functionality from pynostr

Backend - Relay-Abbot

  • Use Relay-Abbot (see API crossplatform POC #3) to store and forward notes kind 4 that are directed to abbot
  • POST to Abbot via telegram API with new slash command in "text" field

Backend - Abbot

  • Define how to parse this from telegram
  • Could use a new slash command handler or some kind of message filter
  • Slash command example: /nostrdm <note_kind_4>
  • nostr_dm function should parse note, create embeddings, store in pinecone, pull similarity data, send to OpenAI, use Nostr class functions to construct a response API call to Relay-Abbot to broadcast to relay

Backend - Nostr

  • Add functions to Nostr class to construct a note kind 4 and sign it (nostr/nostr.py)

Updating this to align with new direction.

General

Backend - AbbotNostr

bnonni commented 10 months ago

Due date = 10/17/23

Due date:

bnonni commented 10 months ago

Backend - AbbotNostr

Open Questions

Func Reqs

bnonni commented 10 months ago

Progress made and changes live on the nostrasia branch.