Simple bot build by line-bot-sdk-python
Go to LINE@ MANAGER
- Account Overview -> (Select Your Account) -> Account Setting
Basic Setting:
- Set profile image
- Get QR code / Add friend button
Bot Setting:
- Webhook Messaging Allow/Disallow
- Allow to be add in group chat Y/N
- Auto response Y/N
- Greetings Y/N
Go to Business Center
- Account List -> Your Accounts -> Messaging API -> LINE Developers
- Fill
line_auth_key.yml
with secret and access token CHANNEL_SECRET = ''
CHANNEL_ACCESS_TOKEN = ''
- build environment
- python 3.7 and requirements:
./scripts/build_venv.sh
- python 3.7 and requirements:
- init and update submodule:
git submodule update --init --recursive
sudo systemctl restart line_bot_uwsgi
tail -f /var/log/uwsgi/uwsgi.log -n 100
【一般天氣指令】
使用中央氣象局最新資料
◉ 天氣 -> 天氣概況圖(以10分鐘為單位更新)
◉ 即時雨量 -> 即時雨量圖(以30分鐘為單位更新)
◉ 雷達 -> 雷達回波圖(以10分鐘為單位更新)
◉ 空品 -> 空氣品質圖(以60分鐘為單位更新)
◉ 空品預測[空格][地區] -> 空氣品質預測(僅能預測粗略空品區)
◉ 空品現況[空格][地區] -> 空氣品質現況(列出該縣市所有測站資訊)
【其他指令】
◉ 包含「幫QQ」 -> 機器人幫邊緣的你QQ
◉ 包含「運勢」-> 抽運勢
◉ 包含「塔羅」-> 抽塔羅牌(厭世動物園畫風)
◉ 包含「咕嚕靈波」
◉ 包含「爛中文」
◉ 包含「魔法少女」 ◉ 包含「請問為什麼」