Skip to content

connectnotion/im-to-notion

Repository files navigation

Table of Contents generated with DocToc

im-to-notion

send msg to notion through im.

set config file

log:
  level: info
  output: stdout

source:
  dingtalk:
    appKey: xxx
    appSecret: xxx

destination:
  notion:
    secret: xxx
    databaseId: xxx

build on local

make build
# after modify ./conf/config.yaml
./bin/im-to-notion

use release image

  • use env
docker run -itd \
 -e LOG_LEVEL=${LOG_LEVEL} \
 -e LOG_OUTPUT=${LOG_OUTPUT} \
 -e DINGTALK_APP_KEY=${DINGTALK_APP_KEY} \
 -e DINGTALK_APP_SECRET=${DINGTALK_APP_SECRET} \
 -e NOTION_SECRET=${NOTION_SECRET} \
 -e NOTION_DATABASE_ID=${NOTION_DATABASE_ID} \
 --name im-to-notion ghcr.io/ronething/im-to-notion:0.0.2
  • use config file
docker run -itd -v `pwd`/conf:/usr/local/im-to-notion/conf --name im-to-notion ghcr.io/ronething/im-to-notion:0.0.2 -c /usr/local/im-to-notion/conf/config.yaml

Acknowledgement

  • dingtalk
  • notion
  • opensource project in go.mod

Buy me a coffee

wechat