reiyw / sb-unfurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Install dependencies

pip install -r requirements.txt

Export environment variables

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 with xoxp-. 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>

Start the server

$ sanic main.app

About

License:MIT License


Languages

Language:Python 100.0%