github.com ひとまず 電車遅延 天気 を教えてくれるボット、名付けて pikapika ボット。 使い方 準備 pip install -r requirements.txt 設定(setting.toml) slack の API トークンやボットの ID を設定する。 [common] interval = 1 example_command = '教えて' [slack] api_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' bot_id = 'XXXXXXXXXXX' [get_weather] uri = 'http://weather.livedoor.com/forecast/webservice/json/v1?city=400010' [train_delay] uri = 'http:
![短い冬休みに Python で slack ボットを作るぞ(1) | iret.media](https://cdn-ak-scissors.b.st-hatena.com/image/square/2a58d0e84e7ecfa047c95f8efc3917226c7dc1fd/height=288;version=1;width=512/https%3A%2F%2Firet.media%2Fwp-content%2Fuploads%2F2015%2F11%2Feyecatch-python-2.png)