catvinyl
catvinyl
Character AI without Puppeteer https://gist.github.com/catvinyl/f7fa537954265f0ac3b940a114745b04 You need to install [ws](https://www.npmjs.com/package/ws). And you need to put your data to test: **How to get WebSocket token and chat id?** 1. Create chat...
@Parking-Master you need send message to AI, then check out for GET request with status 101. You can also choose filter for WS requests. Check that you're using https://beta.character.ai/chat2?char=... but...
My implementation is simple, but it can be broken with async requests, so you need to use await, and it skips to the fully generated answer. You can get a...
@Parking-Master I upgraded the script. Now it can create chat. Try only putting in a token. You can also try "debug = true" to see what's wrong.
@Parking-Master you can continue chat. You need to replace ```js const chat = await characterAI.createChat(character_id); const chat_id = getChatId(chat); ``` with ```js const chat_id = 'xxxxyyyy-bbbb-cccc-dddd-eeeeffff1111'; ```
I don't think AI have information about chat_id. When you run script it says ``` Ready! user_id (some numbers) chat_id 9e5fe1a7-7878-42a5-a43e-e1421cefe027 ... ``` Then you need put that to chat_id....