/Folio-bot

FOLIO data to slack

Primary LanguagePython

FOLIO bot

2023/8 Archived due to sunsetting of theme investment.


Build Status

How to use

Please try it with this command.

docker run -e USERNAME="<Your mail address>" -e PASSWORD="<Your password>" -e WEBHOOK_URL="<Your slack incoming-webhook URL>" [-e TITLE="今日のFOLIO"] koukidan/folio-bot

After login successful, you will see like this image:
screen shot 2018-03-03 at 11 43 54 pm

How to develop

  1. Copy env file from env.sample to env and replace them for development info
  2. Run this command for development docker-compose up --build

Deploy to kubernetes

This uses alpha version feature of Kubernetes. To use it on GKE, you must make alpha feature on

  1. Create Secret
kubectl create secret generic folio-bot-credentials --from-literal=username=[your username] --from-literal=password=[your password] --from-literal=webhook-url=[your slack incoming-webhook url]
  1. Create CronJob
kubectl create -f folio-cron.yml

That's all. You will show your data on slack if configuration succeeded.

Deploy to Heroku

Deploy

  1. Use above button to create heroku app
  2. Setup schedule when deployed
    • Click Manage app button to show overview
    • Click Heroku Scheduler add-on to setup schedule
    • Click Add new job button
    • Set this command python folio.py
    • Set schedule like below screen shot.
    • setup image
  3. Finished!