Skip to content

Instantly share code, notes, and snippets.

@Memory-of-Snow
Memory-of-Snow / 2_3_alt.js
Last active September 5, 2024 14:53
演習コードの改造案
/**
* テキスト投稿イベント(リプライ)を組み立てる
* @param {string} content 投稿内容
* @param {import("nostr-tools").Event} targetEvent リプライ対象のイベント
*/
const composeReplyPost = (content, targetEvent) => {
/* Q-1: これまで学んだことを思い出しながら、
リプライを表現するイベントを組み立てよう */