Skip to content

shxun6934/Weather_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather_Bot

What

石川県のお天気(状態と温度)を知らせてくれるSlackBot。

Purpose

  1. 石川の天気を即座にわかるようにする
  2. これからの天気もすぐにわかる。

ex. 石川以外の天気も表示できるようにする。

Function

  • スラッシュコマンド/weather を打つとslackで石川の天気を教えてくれる。

Environment

Set up

  1. go install

dep

  1. go get -u github.com/golang/dep/cmd/dep でdepをインストール
  2. プロジェクト作成
  3. dep init で初期化 -> Gopkg.tomlGopkg.lockvendorが作成される。
  4. dep ensure でパッケージをインストール。

OpenWeatherAPI

  1. サイトにいき、アカウント作成
  2. APIKey取得 = API_KEY

SlackAPI

  1. SlackAPIのサイトでCreate New App
  2. Features -> Bot Usersで名前を設定してAdd Bot User
  3. Settings -> Install AppInstall App to WorkspaceでWorkSpaceにボットをインストール
  4. Settings -> Basic Information にあるVerification Token取得 = VERIFICATION_TOKEN

Reference

OpenWeatherMap:

SlackBot作成:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages