Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Latest commit

 

History

History
147 lines (88 loc) · 3.81 KB

README-EN.md

File metadata and controls

147 lines (88 loc) · 3.81 KB

氣象喵 WxKitty

Build Status

「氣象喵」是聊天氣象機器人,自動回應有關天氣的訊息

"WxKitty" is a weather chatbot that answers all questions about weather.

bot_home

Supporting:

If you want to know more about this project, you can checkout this article(Chinese):來寫個氣象機器人吧!

Start to Use

Line

Add the bot via QR code or click the button below

You can chat with the bot directly or add the bot in the group.

QRcode

加入好友

Telegram

Add the bot: https://t.me/weather_tw_bot

You can chat with the bot directly or add the bot in the group.

Messenger(deprecated)

You can chat with the bot via the link.

Link: http://m.me/weather.bot.tw/

Demo

demo_enter

demo1

demo2

demo3

demo4

Document

Enter questions, and WxKitty will anwser you.

[Quickly Use]
New York Weather
Tokyo Weather

Taipei Air
London Air

[Checkout all command]
Help

Develop

Currently this repo is connecting with:

The bot use webhook to receive message and reply to users.

The two bot are synced to master.

For more detail about line bot, can visit https://developers.line.me/

How to test

Console mode testing

Console mode is an interactive mode that you can test in local.

npm run console

Test the real bot

Test bot(line) link: https://line.me/R/ti/p/pOGQWj-4j-

Steps:

  1. add the test line bot above as friend
  2. send a PR
  3. ask @tigercosmos to help you call the bot

For user IDs in white list, create comment bot try in PR.

Setup

Dependencies

node-canvas

Linux:

sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++

MacOS:

brew install pkg-config cairo pango libpng jpeg giflib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PATH="/usr/local/opt/icu4c/bin:$PATH
export PATH="/usr/local/opt/icu4c/sbin:$PATH
cp /usr/local/Cellar/libpng/1.6.34/lib/pkgconfig/libpng.pc /usr/local/lib/pkgconfig
cp /usr/local/Cellar/fontconfig/2.12.6/lib/pkgconfig/fontconfig.pc /usr/local/lib/pkgconfig

Run

Make sure npm and NodeJS(v8.11.2) have installed.

note: it is known that not work in NodeJS v10

git clone https://github.com/weather-bot/weather-bot
cd weather-bot
npm install
npm start

Developer

License

MIT