Skip to content

設定ファイル

Tatsuya Koishi edited this page Sep 25, 2021 · 28 revisions

設置先

以下の順に検索を行っている。どこに置いても良い。 所有者はtomato-shriekerの実行ユーザーで、640か600のパーミッションを推奨。

  • /usr/local/etc/tomato-shrieker/local.yaml
  • /usr/local/etc/tomato-shrieker/local.yml
  • /etc/tomato-shrieker/local.yaml
  • /etc/tomato-shrieker/local.yml
  • 設置先ディレクトリ/config/local.yaml
  • 設置先ディレクトリ/config/local.yml

設定例

sources:
  - source:
      command:
        - ./bin/crawl.rb
        - --entry
        - shooby
      dir: /home/pooza/repos/shooby-do-bop
    schedule:
      cron: '1 12 * * *'
    dest:
      hooks:
        - https://mstdn.b-shock.org/mulukhiya/webhook/xxxxx
        - https://discordapp.com/api/webhooks/xxxxx/slack
    tags:
      - キラキラ☆プリキュア アラモード
      - 宮本佳那子
      - シュビドゥビ☆スイーツタイム2000万再生カウントダウン
      - precure_fun
  - source:
      feed: https://precure.b-shock.org/feed/v1.0/site/garden
    dest:
      mastodon:
        url: https://mstdn.example.com
        token: xxxxx
      tags:
        - tomato_toot
        - token
  - source:
      feed: https://precure.b-shock.org/feed/v1.0/site/garden
    dest:
      hooks:
        - https://mstdn.b-shock.org/mulukhiya/webhook/xxxxx
      tags:
        - tomato_toot
        - webhook
  - source:
      feed: https://news.google.com/rss/search?q=%E3%83%97%E3%83%AA%E3%82%AD%E3%83%A5%E3%82%A2&hl=ja&gl=JP&ceid=JP:ja
    dest:
      account:
        bot: true
      mastodon:
        url: https://mstdn.example.com
        token: xxxxx
      tags:
        - プリキュアウィークリー
slack:
  hooks:
    - https://hooks.slack.com/services/xxxxx
    - https://discordapp.com/api/webhooks/xxxxx/slack