index

id: 40af692c27beaabb432114c57275f169a2ac3c651262c1ffe4c3ae182350141d

id (bech32): note1gzhkjtp8h64tksepznzhya03dx32c0r9zf3vrllycwhpsg6szswsh84h4m

sig: 207cb87b6122cbec5cf55fa262f403671221219fc32a70945250f073688c0a679fe591195b341d5e48b8aac8bd0aad04574ce74c673428ec340987b2734255d8

created_at: 2023-08-25 23:48:39 +0900

created_at (unix time): 1692974919

content:

こういうの

const kojiraPubkey = "ここにこじらさんのhex pubkeyを書く";

// ... 色々準備

sub.on("event", (event) => {
if (event.content.match(/第\d+回Nostrくいず〜!/)) {
const content = `${65536}`; // 君だけの最強の予想関数でここの数値を決めよう!
const replyId = event.id;
const ev = {
kind: 1,
created_at: Math.floor(Date.now() / 1000),
tags: [
["e", replyId, "", "root"],
["p", kojiraPubkey],
],
content,
pubkey
};
ev.id = getEventHash(ev);
ev.sig = getSignature(ev, privkey);
pool.publish(relays, ev); // 自動回答!
}
});

かなりじゃあく。
かいしんしなさい。

JSON