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
cloudflare-workersを使ってslack上に匿名チャットを作った話
Search
sugawani
November 19, 2023
Technology
530
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
cloudflare-workersを使ってslack上に匿名チャットを作った話
sugawani
November 19, 2023
Transcript
17 slides
Cloudflare Workers を使って Slack 上に匿名チャットを作った話 Cloudflare Meetup Sapporo Vol.2 Nov
20, 2023. sugawani
・Sugawara(sugawani) ・Web Engineer @EGSTOCK ・https://x.com/sugawani_dev ・https://github.com/sugawani ・Go/Elm/Deno 自己紹介
Slackbot 作ったことある人
・Webhook ・Bolt ・Workflow ・Slack Platform Slackbot を作るには
・インフラ ・使いたい機能が使えるのか ・新しい言語の習得 ・お金 色々考える必要がある
Cloudflare Workers
・アプリケーションだけ書けばいい ・Slack API の利用なので何でも使える ・慣れ親しんだ TS で書ける ・お金もかからない (500円は実質タダ) 色々考えなくていい
Slack Cloudflare Workers
・https://github.com/seratch/slack-cloudflare-workers ・slack の @seratch さん作ライブラリ ・Slackbot で必要な認証等を意識せず作れる ・TypeScript 対応 Slack
Cloudflare Workers
)B App Manifest を書いて bot 作0 HB bot のコードを書 B
Cloudflare Workers にデプロF B デプロイした URL を bot に紐づけC (B 完成! Slackbot を作る
匿名チャット
・Slack 上の会話を盛り上げたい ・匿名性があれば盛り上がりやすい(気がする) ・似たようなものを作ってる人はいる ・Cloudflare Workers 製のものはまだ無い(はず) 匿名チャット
2 #general を表 1 /vip をつけて送Ç Æ #anonymous-chat 良ければ触ってみてください
gR /vip でメッセージ送 eR Cloudflare Workers が受 )R レス番、メッセージの保存(荒らし対策 #R
ユーザ名を匿名化して送 fR #anonymous-chat に投稿される 動いている仕組み
・Cloudflare Workers ・Slack-Cloudflare-Workers + TypeScript ・Durable Objects(レス番の管理) ・Cloudflare D1(メッセージの保存) ・Wrangler
+ Cloudflared(開発、デプロイ) 使った技術
・Cloudflare Workers で Slack アプリを動かす方法 ・社内slackにVIPチャンネルを作った話(元ネタ) ・Slack-Cloudflare-Workers で Slack に匿名チャンネ
ルを作った 参考
ありがとうございました 終 制作・著作 ━━━━━ すがわに
Other Decks in Technology
See All in Technology
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
370
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
130
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
200
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
150
PR 生成AIガバナンスの全体像がわかる本
yoshimura_datam
0
140
ポケモンバトルのAIエージェント
koji_kawamura
0
330
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
150
AIエージェントのアーキテクチャ設計
nsatoh
0
600
VTuberになってみた話
yoshimura_datam
0
140
Fukurou Labo_Engineer_Deck
fukuroulabo
0
120
Ignite 2026 Security
babaneko
0
120
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
9
6.1k
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
530
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
870
Rails Girls Zürich Keynote
gr2m
96
14k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
630
Deep Space Network (abreviated)
tonyrice
0
430
Chasing Engaging Ingredients in Design
codingconduct
0
410
The Cult of Friendly URLs
andyhume
79
7.1k
GraphQLとの向き合い方2022年版
quramy
50
15k
What's in a price? How to price your products and services
michaelherold
247
13k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Producing Creativity
orderedlist
PRO
348
41k