diff --git a/Dockerfile b/Dockerfile index 5dcdaea..2559cdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ WORKDIR /app COPY package*.json ./ RUN npm install COPY . . -ENV WECHATY_PUPPET_WECHAT_ENDPOINT=/usr/bin/google-chrome +#ENV WECHATY_PUPPET_WECHAT_ENDPOINT=/usr/bin/google-chrome CMD xvfb-run --server-args="-screen 0 1280x800x24 -ac -nolisten tcp -dpi 96 +extension RANDR" npm run dev \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index dce43ca..2e77740 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,10 +6,6 @@ const chatGPTBot = new ChatGPTBot(); const bot = WechatyBuilder.build({ name: "wechat-assistant", // generate xxxx.memory-card.json and save login data for the next login - puppet: "wechaty-puppet-wechat", // generate xxxx.memory-card.json and save login data for the next login - puppetOptions: { - uos: true - } }); async function main() { const initializedAt = Date.now() @@ -41,9 +37,6 @@ async function main() { } catch (e) { console.error(e); } - }) - .on("error",(e)=>{ - console.log(`ERROR !!! ${e}`); }); try { await bot.start(); @@ -53,4 +46,4 @@ async function main() { ); } } -main(); \ No newline at end of file +main();