command
module
Version:
v0.0.0-...-54091be
Opens a new window with list of versions in this module.
Published: Jun 7, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Weather_Bot
What
石川県のお天気(状態と温度)を知らせてくれるSlackBot。
Purpose
- 石川の天気を即座にわかるようにする
- これからの天気もすぐにわかる。
ex. 石川以外の天気も表示できるようにする。
Function
- スラッシュコマンド
/weather を打つとslackで石川の天気を教えてくれる。
Environment
Set up
- go install
dep
go get -u github.com/golang/dep/cmd/dep でdepをインストール
- プロジェクト作成
dep init で初期化 -> Gopkg.tomlとGopkg.lock、vendorが作成される。
dep ensure でパッケージをインストール。
OpenWeatherAPI
- サイトにいき、アカウント作成
- APIKey取得 = API_KEY
SlackAPI
- SlackAPIのサイトでCreate New App
Features -> Bot Usersで名前を設定してAdd Bot User
Settings -> Install AppのInstall App to WorkspaceでWorkSpaceにボットをインストール
Settings -> Basic Information にあるVerification Token取得 = VERIFICATION_TOKEN
Reference
OpenWeatherMap:
SlackBot作成:
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.