remove ppi

This commit is contained in:
Travis Shears 2024-07-06 10:42:15 +02:00
parent a481626e47
commit 979196c50c
7 changed files with 39 additions and 20 deletions

View file

@ -10,10 +10,8 @@ const withRequest = lambdaRequestTracker();
const pb = new MicroBlogBackend(logger);
const fetcherNpub =
"npub1qqqqqqp350slvdds7028l4yre5cuh8v38zseert25mxf7lkr2trsy0j2m8";
const myNpub =
"5e370c2f2e0422423fa5028d7d0debfecbe699a0c7337e139b25eb2b112d450d";
const fetcherNpub = process.env.NOSTR_FETCHER_NPUB!;
const myNpub = process.env.NOSTR_ID!;
type NostrTag = ["t" | "r" | "imeta", string];
type NostrEvent = [
@ -42,7 +40,7 @@ exports.run = async (event: any, context: any) => {
}
// listen for new events for 30 seconds
logger.info("trying to connecting to nostr relay");
const ws = new WebSocket("wss://travis-shears-nostr-relay-v2.fly.dev/");
const ws = new WebSocket(process.env.NOSTR_RELAY!);
// Other Relay URLs
// "wss://nos.lol",
// "wss://nostr.wine",