Skip to content
Today's sukkirisu (スッキリす, www.ntv.co.jp/sukkiri/sukkirisu/index.html) reporter
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src
.gitignore
LICENSE
README.md
requirements.txt

README.md

sukkirisu

slack sample Today's sukkirisu (スッキリす, www.ntv.co.jp/sukkiri/sukkirisu/index.html) reporter

Command line

Installation

git clone https://github.com/ryotosaito/sukkirisu.git
cd sukkirisu
python3 -m venv .
. bin/activate
pip install -r requirements.txt

Usage

python src/sukkirisu.py 1 #sukkirisu search for January

Slack slash command using AWS Lambda

Preparation

git clone https://github.com/ryotosaito/sukkirisu.git
cd sukkirisu/src
pip3 install -r requirements.txt -t .
zip -r sukkirisu.zip *

In your AWS console: Lambda

Designer

setting sample

  • Click + Add triger
  • Select API Gateway
  • Settings
  • API: Create a new API
  • Security: Open
  • Additional Settings: None
  • Click Add
  • Redirects to Designer pane
  • Click API Gateway
  • Scroll Down
  • Note down API endpoint URL in the API Gateway pane

Function Code

setting sample

  • Code entry type: Upload a .zip file (upload sukkirisu.zip created before)
  • Runtime: Python 3.x
  • Handler: sukkirisu.lambda_handler

In your Slack API console

Slash Commands window setting sample

  • Click Create New Command in Slash Commands
  • Settings
  • Command: /sukkirisu
  • Request URL: noted API endpoint URL
  • Short Description: Today's sukkirisu
  • Usage Hint: <month in int>
You can’t perform that action at this time.