weather_bot

command module
v0.0.0-...-54091be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2019 License: MIT Imports: 3 Imported by: 0

README

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作成:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL