https://github.com/massongit/line-bot
Herokuで動かすことを想定したLINE BOT
https://github.com/massongit/line-bot
bot chatbot heroku linebot python
Last synced: about 1 year ago
JSON representation
Herokuで動かすことを想定したLINE BOT
- Host: GitHub
- URL: https://github.com/massongit/line-bot
- Owner: massongit
- License: mit
- Created: 2016-08-12T09:59:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T00:16:24.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T18:52:48.587Z (over 1 year ago)
- Topics: bot, chatbot, heroku, linebot, python
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BOTっぽい何か ver.1.0.2
[](LICENSE) [](https://codeclimate.com/github/massongit/LINE-BOT/maintainability)
[](https://heroku.com/deploy)
## 概要
[Heroku](https://www.heroku.com/)で動かすことを想定したLINE BOTです。
## 開発環境
Python 3.7
## 使用サービス
* [Heroku](https://www.heroku.com/)
* [LINE Messaging API](https://developers.line.me/ja/services/messaging-api/)
* [日本語形態素解析 (Yahoo! JAPAN Webサービス)](https://developer.yahoo.co.jp/webapi/jlp/ma/v1/parse.html)
## 機能
* 暴言が来たら、『なんだと(# ゚Д゚)』と返す
* 『{1文字以上の文字列}っぽー』と来たら、『ほっほー(・∀・)』と返す
* 上記2つに当てはまらない文字列が来たら、文字列をひらがなに変換し、単語ごとに区切った上で返す
## Webhook URL ([LINE Messaging API](https://developers.line.me/ja/services/messaging-api/))
https://{アプリ名}.herokuapp.com/callback
## Config Variables ([Heroku](https://www.heroku.com/))
|||
|:--:|:--:|
|`LINE_CHANNEL_SECRET`|Channel Secret ([LINE Messaging API](https://developers.line.me/ja/services/messaging-api/))|
|`LINE_CHANNEL_ACCESS_TOKEN`|アクセストークン ([LINE Messaging API](https://developers.line.me/ja/services/messaging-api/))|
|`YAHOO_JAPAN_WEB_SERVICE_APPLICATION_ID`|アプリケーションID ([Yahoo! JAPAN Webサービス](https://developer.yahoo.co.jp/start/))|
|`DEBUG`|デバッグするかどうか (`True`, `False` / デフォルト値: `False`)|