AHGGG / poe-node-api

A reverse engineered Node.js client for Quora's Poe.
MIT License
38 stars 5 forks source link

Multi-account cookie and .env configuration issues #10

Open boygoboy opened 1 year ago

boygoboy commented 1 year ago

image

Hello author, I ran your code and found the following code:

    const {BotNickNameEnum, PoeClient, sleep} = await import("poe-node-api")
    const client = new PoeClient({
        debug: true,
        cookie
    })
    await client.init()

Relevant configurations will be written into the .env configuration file, but if I have multiple account requirements, that is, if there are multiple cookies, it seems conflicting to put these configurations in .env. Can it be based on this requirement? Under optimization, these configurations are directly returned to the user for storage by executing await client.init(), and these variables are passed in when the next message is sent or initialized, thank you!

AHGGG commented 1 year ago

Thanks for your feedback, I will add multi-account support

boygoboy commented 1 year ago

Thanks for your feedback, I will add multi-account support

thank you very much

AHGGG commented 1 year ago

Try branch dev example/sendMsg.ts, preliminary support for multiple accounts has been added. Currently, user needs to create different clients and save by themselves. Still considering adding support for multiple websockets in the client.

boygoboy commented 1 year ago

Try branch dev example/sendMsg.ts, preliminary support for multiple accounts has been added. Currently, user needs to create different clients and save by themselves. Still considering adding support for multiple websockets in the client.

awesome i will try it

AHGGG commented 1 year ago

Multi-account support can be found in README.md

User should manage an envMap themselves