Hubmakerlabs / replicatr

Nostr relay with Internet Computer integration for inter-relay synchronization
https://mleku.dev/git/replicatr
GNU General Public License v2.0
13 stars 1 forks source link

implement relay chatbot #20

Closed mleku closed 5 months ago

mleku commented 6 months ago

the relay will monitor events to catch kind 4 messages with the relay's public key as the recipient, and respond to them

this is a less complicated way to implement user access control, owners and administrators can just issue commands, when you first message the relay or message it with /help it will print out the current command options

mleku commented 6 months ago

oof... ended up having to disable all the privilege protections on requests, now there is a challenge string that has to be pasted into a reply in order to confirm there isn't a replay attack going on

now getting started on the command list

mleku commented 6 months ago

has fallback auth that should work with a non-NIP-42 client but going to prescribe running on a pinned version of coracle anyway

ACL scheme has been drafted and some basic tests written, now constructing the command processing code