wangrongding / wechat-bot

🤖一个基于 WeChaty 结合 OpenAi ChatGPT / Kimi / 讯飞等Ai服务实现的微信机器人 ,可以用来帮助你自动回复微信消息,或者管理微信群/好友,检测僵尸粉等...
MIT License
4.39k stars 658 forks source link

Passing executablePath via CHROME_BIN #127

Closed saiwas closed 1 year ago

saiwas commented 1 year ago

@wangrongding , related to issue https://github.com/wangrongding/wechat-bot/issues/54. I want to set the same environment variable "CHROME_BIN" as in "puppet", we can pass the chrome bin path dynamically without changing the code.

Example:

export CHROME_BIN="/usr/bin/chromium"
# export CHROME_BIN="./node_module/puppeteer/xxxx/.../chromium-linux/chromium"
npm run dev

How do you think?