Skip to content
Yoffa edited this page Oct 22, 2019 · 5 revisions

Welcome to the WolframBot wiki!

The code structure:

  • flask_handler.py this file will act as the HTTP server that will handle requests from endpoint(LINE), with Flask. There is no WSGI setup yet, and the debug flag is still on for hot-reload.

  • LineHandler.py act as the only handler for the LINE Messaging API functions and other stuffs related to it.

  • WolframAPICLient.py will fire requests to Wolfram Alpha Full Result API and format the response, so it can be sent to LINE correctly.

Setting up for Development:

  • Follow the instructions here to set-up bot channel and get LINE API Key
  • See this page to set-up Wolfram Alpha APPID
  • Clone this repository
  • Install package requirements from requirements.txt

The bot requires a .env file that contains several credentials for LINE Messaging API and Wolfram Alpha API, the file should contain:

  • CHANNEL_ACCESS_TOKEN=your_LINE_channel_access_token
  • CHANNEL_SECRET=your_LINE_channel_secret
  • WOLFRAM_APP_ID=your_wolfram_API_APPID
Clone this wiki locally