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
PythonでSlack通知botを作る
Search
Ryosuke Uchiyama
April 04, 2024
Technology
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PythonでSlack通知botを作る
Ryosuke Uchiyama
April 04, 2024
More Decks by Ryosuke Uchiyama
See All by Ryosuke Uchiyama
AWSでサーバレスな書籍管理アプリを作る
step63r
0
69
ChatGPT実践
step63r
1
400
IoT実践! 行先予定表を電子ペーパーで作る
step63r
0
50
React x Socket.ioで人狼サーバを作る 第一章 フロントエンド実装
step63r
0
35
深層強化学習で東方AI 第一章 DQNの基本
step63r
0
390
Build 2021 プレイバック
step63r
0
44
WPFで実践アプリ開発! 第四章 機能の実装 Part 2
step63r
0
62
WPFで実践アプリ開発! 第三章 機能の実装 Part 1
step63r
0
140
WPFで実践アプリ開発! 第二章 UI
step63r
0
190
Other Decks in Technology
See All in Technology
MCPゲートウェイを作って運用してわかったこと — Agent時代の権限管理の現在地
mtpooh
6
1.8k
OpenClawでAzure DevOpsのWiki更新を自動化する - クラウドAIだけでは届かない場所へ
yutakaosada
0
130
AIエージェント時代のPlatform as a Product —— テックリードがPdMとして回す発見・導入・計測 / Platform as a Product in the AI Agent Era
toshi0607
1
540
Kiro Meetup #8 Kiro アップデート (2026/3/21〜2026/9/24)
katzueno
1
310
AI感のないAWS構成図をAIエージェントに描かせたい!
sagochiko
2
480
営業オントロジーの作り方と、エージェントからの辿り方 ── ナレッジワークの現場から
kworkdev
PRO
1
210
ビジネスを止めない技術的負債の返済のための戦略とその手法 - 技術的負債と向き合う / Complexity and Simplicity
soudai
PRO
0
100
Apache Iceberg が拓く AI 時代のオープンレイクハウス
tomtanaka
0
200
VS Code × GitHub Copilot での Fabric 開発
ryomaru0825
1
200
The kernel report
ennael
PRO
1
160
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
240
「大丈夫そう?」をObservabilityで確かめる
mrmtsu
0
240
Featured
See All Featured
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
330
The Curse of the Amulet
leimatthew05
3
15k
Documentation Writing (for coders)
carmenintech
77
5.5k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
590
Transcript
PythonでSlack通知botを作る Ryosuke Uchiyama 1 © 2023 minato project. step63r step63r
2 AGENDA © 2023 minato project. 1. 概要 • 作るもの
• 前提知識 • 開発環境 • Webhookとは 2. 実践 • Slackでアプリを作成する • Pythonでプログラムを書く • Azureにデプロイする
1. 概要 3 © 2023 minato project. Overview
4 作るもの © 2023 minato project. • 毎朝9時にその日の東京の天気をSlackにお知らせするbotを作ります • 気象情報の取得にはOpen-Meteoを利用します
• プログラムのデプロイ先はAzureとします Open-MeteoのAPI仕様は こちら をご確認ください。 タイマーイベント 天気を通知 Azure Functions Slack データ取得
前提知識 © 2023 minato project. 5 • HTTP通信の基礎知識 • Python
(3.7以降) の基本構文 • Slackの操作方法 • Azureの基礎知識
開発環境 © 2023 minato project. 6 • Windows 11 Pro
23H2 • Visual Studio Code • Azure Tools v1.2.0 • Azurite v3.29.0 • Python v2024.2.1 • Python 3.11.2 • Azure Functions Core Tools 4.0.5441
Webhookとは © 2023 minato project. 7 • アプリケーションの更新情報を他のアプリケーションへリアルタイム提供する仕組みや概念のこと。 • イベント(リポジトリにプッシュなど)発生時、指定したURLにPOSTリクエストする仕組みのこと。
git push等 Webhook通知 Webhookとは? #初心者 - Qiita GitHub Slack
2. 実践 8 © 2023 minato project. Practice
9 Slackでアプリを作成する © 2023 minato project. 1. あらかじめSlackのアカウントとワークスペースを作成しておく 2. Slack
APIにアクセスする 3. 「Create an App」を押下する 4. 「From scratch」→ 名前とワークスペースを入力・選択し「Create App」を押下する 5. 「Incoming Webhooks」→「Activate Incoming Webhooks」を「On」にする 6. 「Add New Webhook to Workspace」を選択、投稿先のチャンネルを選択し「許可する」を押下する 7. 「Sample curl request to post a channel」のコードをコピーし、PowerShellに貼り付け、実行 8. 設定したチャンネルに投稿がされていれば設定完了
10 Pythonでプログラムを書く © 2023 minato project. step63r/uchi-notify-weather-slack-bot https://github.com/step63r/uchi-notify-weather-slack-bot
Azureにデプロイする © 2023 minato project. 11
ご清聴ありがとうございました