realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
346 stars 72 forks source link

I'm trying to create an automated character generation. #105

Closed bazhenberg closed 1 year ago

bazhenberg commented 1 year ago

Hello everyone! I added a function to the 'client.js' file:

async customCreateCharacter() { let request = await this.requester.request("https://beta.character.ai/chat/character/create/", { body: Parser.stringify({ title: "", name: "lelelle14894", identifier: "id:258fe483-8baf-497c-a5d3-f158b3713082", categories: [], visibility: "PUBLIC", copyable: true, description: "", greeting: "My name is lelelle14894", definition: "", avatar_rel_path: "", img_gen_enabled: false, base_img_prompt: "" }), method: "POST", headers: this.getHeaders() });

return request;

}

This request is supposed to create a character, but nothing happens when it is called. What could be the issue?