First, please clone this repository to your development environment.
$ git clone https://github.com/yfujit/splatoon2_notificater.git
Slack is one of the most popular chat tools. splatoon2_notificater notify team members to use Slack Incoming Webhook.
Incoming Webhooks are a simple way to post messages from external sources into Slack. Please show Official page.
Create config/credentials.yml and configure WEBHOOK_URL and IKSM_SESSION.
$ cp config/credentials.yml.sample config/credentials.yml
$ vi config/credentials.yml
WEBHOOK_URL: SET_YOUR_SLACK_INCOMING_WEBHOOK_URL #Please Change
IKSM_SESSION: SET_YOUR_IKSM_SESSION #Please Change
Serverless is toolkit for deploying and operating serverless architectures.
- Install Serverless Globally
$ npm install -g serverless
- Check Serverless command
$ serverless -h
Conguraturation! With just this command your Splatoon life is better than before.
$ sls deploy --region {AWS Regions}
Default Parameters
- region : ap-northeast-1
$ sls deploy --region us-east-1
If you develop this bot, Please install python-lambda-local and create credential.sh and configure WEBHOOK_URL and IKSM_SESSION.
- Install python-lambda-local and other package from requirement.txt
$pip install -r requirements.txt
- Check python-lambda-local command
$python-lambda-local --version
- Create credentials.sh and configure WEBHOOK_URL and IKSM_SESSION.
$ cp credentials.sh.sample credentials.sh $ vi credentials.sh WEBHOOK_URL: SET_YOUR_SLACK_INCOMING_WEBHOOK_URL #Please Change IKSM_SESSION: SET_YOUR_IKSM_SESSION #Please Change
- Set Environment Variable to use credential.sh
$source credential.sh
- Local Exec(Sample)
$python-lambda-local -f lambda_handler slack_notificater.py event.json