Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Nostr投稿をdiscordに投げるbot作った話
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
kojira
February 23, 2023
Technology
560
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nostr投稿をdiscordに投げるbot作った話
Nostr勉強会 #0 発表資料
https://428lab.connpass.com/event/275748/
kojira
February 23, 2023
Transcript
44 slides
discordに Nostr投稿流す bot作った話 kojira
botを⼊れて discordのコマンドで filter設定すると
None
filterにマッチする投稿が コマンドを使ったチャンネルに 投稿されます
名前は Nostify です(安直)
普段良く使ってる pythonで作りました
構成
リレー サーバーたち subscribe discord DB bot
苦労したこと
python-nostr
python-nostr
pip install nostr
うごく、動くぞ!
でもスパムだらけ!
このままだとDBが持たん!
NGワード機能追加
None
これでだいたい弾けた。
しかし、、、
まる⼀⽇くらい稼働させてると 通信が⽌まっている…
どうやら リレーの再接続処理がない!
例外も投げてくれないから
何もできない!!
pip install で⼊る バージョンが古すぎた!
最新版は再接続処理があるぽい!
pip install せずに最新版を git cloneして⼊れるようにした
最新版はメソッドが READMEと書いてること違う😇
ソース読んで対応。
うまく⾏ったかに⾒えた
リレーをsubscribeすると since指定が効かなくて リレーが保持してるの 全部⾶んでくる😇
None
None
None
None
なんか100万件越えた😇
なんか知らんけど
有料リレーの wss://filter.nostr.wine だけにしたらなんとかなった! ※詳しい挙動調べてない
有料リレーの wss://filter.nostr.wine だけにしたらなんとかなった! ※詳しい挙動調べてない
None
さっき作って 稼働中!
元気にハッシュタグを拾ってる(はず)
ソースコードはここ https://github.com/kojira/nostify
botの導⼊URLはこれ https://bit.ly/nostify
ありがとうございました。
More Decks by kojira
See All by kojira
乱数の管〜LLMに物理ランダムを注入する〜
kojira
0
92
自律型AIエージェントは何を破壊するのか
kojira
0
260
AI関連プロトコルの現状
kojira
0
210
Agent2Agentについて
kojira
0
190
生成AI時代の激流から未来を読み解く
kojira
0
140
ai bot got sick (abc 2025s version)
kojira
0
470
AI bot got sick
kojira
0
300
What is Nostr?
kojira
0
260
Bluesky and Nostr review 2023
kojira
0
370
Other Decks in Technology
See All in Technology
クラウドでも使えるNetApp -現場目線での設計とクラウドバックアップの活用
ryutakondo
1
330
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
160
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
440
kubellの最新データ分析環境
kubell_hr
2
260
人の努力に頼らないセキュリティをエンジニアリングする在り方 / An approach to engineering security that does not rely on human effort
carta_engineering
0
240
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
2
630
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
4
870
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
150
閉域網でのAPI公開の選択肢全部比較!
takano0131
5
700
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
970
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.4k
Tell your own story through comics
letsgokoyo
1
1.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The World Runs on Bad Software
bkeepers
PRO
72
12k
It's Worth the Effort
3n
188
29k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
WCS-LA-2024
lcolladotor
0
1k
Writing Fast Ruby
sferik
630
63k
Designing for humans not robots
tammielis
254
26k
How to make the Groovebox
asonas
2
2.6k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
760