pip install -r requirements.txt
You need to set the following environment variables:
SANIC_CONNECT_SID
:connect.sid
cookie referenced when accessing the tohoku-nlp Scrapbox. See ScrapboxのprivateプロジェクトのAPIを叩く for how to obtain the value. Note that abusing this value can retrieve your private Scrapbox contents.SANIC_SLACK_TOKEN
: User OAuth Token beginning withxoxp-
. You can obtain it from the "OAuth & Permissions" section of the app's administration page.
Export these variables:
$ export SANIC_CONNECT_SID=<sid>
$ export SANIC_SLACK_TOKEN=<token>
$ sanic main.app