the bot-github-2-feishu listen github webhook event,analysis webhook payload and send a shorter missege to FEISGH bot.
1.Clone this repository git clone git@github.com:Gensokyo-web3/bot-github-2-feishu.git
2.Install all requirements npm install
1.add a .env
file into project folder
2.add 3 variable in .env
:
FEISHU_WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/XXXXXXXXXXXX
MY_OWN_SERVER=http://XXXXXXXX
SECRET_TOKEN=XXXXXXXX
FEISHU_WEBHOOK_URL
can be checked from bot's information in your feishu groupMY_OWN_SERVER
is your server's URL like:http://your-own-server:8080
SECRET_TOKEN
is used for security settings to protect your bot from external attack
$ ts-node src/index.ts
$ ts-node src/test.ts