Skip to content

sillyrai/c.ai-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An API for c.ai that allows interacting to the characters via Node.JS

An example of how it can be used is

import cAI from "./cAI.js";

var ai = new cAI();
await ai.init('<LINK TO CHARACTER>'); // for example https://beta.character.ai/chat?char=ABCDEFGH123456

console.log(await ai.getInitialMessage());

var msg = await ai.send("Hello");
console.log(msg) // Response from the AI

var msg = await ai.send("How are you doing?");
console.log(msg) // Response from the AI

Notice

this is my first time working with puppeteer and stuff so the code is kind of messy but it does the job

About

An API for interacting via characters on c.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published