Skip to content

gomayumax/clean_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clean_bot

概要

Googleドキュメントのスプレッドシートの掃除当番表を読み込み,当日の当番をSlackに通知する.

使い方

1.googleスプレッドシートに掃除当番表を作る

下図のような形式で
B1,C1,D1,E1...は掃除内容
A2,A3...は日付

図1:形式

2.スクリプトプロパティを設定する

[ツール]>スクリプトエディタ>[ファイル]>プロジェクトのプロパティ>スクリプトのプロパティ

図1:形式

sheetName

掃除当番表を書いたシートの名前

spid

スプレッドシートのURLのkeyの部分
例:下記URL中のxxxxxxxxxxxの部分
https://docs.google.com/spreadsheets/d/**xxxxxxxxxxx**/edit#gid=0

chanel

slack上で通知させるチャンネル名
例: #general

token

https://api.slack.com/webの「Authentication」から得られるチームごとに与えられているtokenのこと。

3.ライブラリを読み込む

http://qiita.com/soundTricker/items/43267609a870fc9c7453 の「ライブラリを読み込む」を参照&ありがたく利用

4.スクリプトを作る

script.gs.jsの中身をスクリプトにコピペ

5.実行(またはトリガーの設定をして実行)

About

GoogleAppScriptを使って掃除当番をSlack通知する

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published