只需几步即可获得基于ChatGPT的微信机器人
🤖 。中文文档 |英语
{ // Fill up with OPENAI_API_KEY OPENAI_API_KEY: '', // Setting the number of retries when API error occurs retryTimes: 3, // Setting keyword to wake up in group chat groupKey: '', // Setting keyword to wake up in private chat privateKey: '', // Setting keyword to reset context resetKey: 'reset', // Enabling auto replies from ChatGPT autoReply: true, // Using regular expression to automatically pass friends verification friendShipRule: /chatgpt|chat/, // Using reply mode in group chat groupReplyMode: true, // Using reply mode in private chat privateReplyMode: false, }
现在,你应该将 Token 值填充到目录 src/config.js 中的
,然后在 local 上运行此项目。OPENAI_API_KEY中
如有必要,请在 src/config.js 中配置其他自定义变量。
// install dependencies
npm i
// start:
// dev
npm run dev
如果你的微信无法登录请检查你项目的根目录,是否有文件—— ,如果有,请将其删除并重试。
WechatEveryDay.memory-card
此软件包仅支持 ESM。它支持:节点.js >= 16.8
如何获得所有响应?你可以说“继续”。
// ubuntu sudo apt-get install chromium-browser sudo apt-get install ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
欢迎贡献你的代码和想法