Comments (9)
I'm building a WhatsApp Bot using @adiwajshing/baileys.
// ai.js
import CharacterAI from 'node_characterai';
const characterAI = new CharacterAI();
export default async function({bot, command_name, input, message, prefix}) {
if (!input) return message.reply(`*ChatGPT*\nMengobrol dengan AI.\n\nPenggunaan: ${prefix + command_name} <text>\nContoh: ${prefix + command_name} Apa itu AI?\n\nCatatan: ChatGPT ini dari character.ai, bukan ChatGPT asli tapi clone yang menurut saya bisa menggantikannya.`);
(async() => {
await characterAI.authenticateWithToken('token'); // I already have the access token, removed due to privacy issues
const characterId = "8_1NyR8w1dOXmI1uWaieQcd147hecbdIK7CeEAIrdJw" // ChatGPT
const chat = await characterAI.createOrContinueChat(characterId);
const response = await chat.sendAndAwaitResponse(input, true)
message.reply(response);
})();
}
from node_characterai.
Hello! I do not use replit sadly so I will mention this issue in #17 as a note. Users have been able to use it on Heroku or local.
What version of the package do you use?
from node_characterai.
Any more info? Like chromium not found or what?
from node_characterai.
Any more info? Like chromium not found or what?
Nothing else, just announced that the browser failed to launch
from node_characterai.
Hello! I do not use replit sadly so I will mention this issue in #17 as a note. Users have been able to use it on Heroku or local. What version of the package do you use?
It turned out that after I searched, Puppeteer really didn't work on Replit, I was disappointed with this. Hope this is fixed soon.
from node_characterai.
I have the same problem, on windows...
node_modules\@puppeteer\browsers\lib\cjs\launch.js:262
reject(new Error([
^
Error: Failed to launch the browser process!
TROUBLESHOOTING: https://pptr.dev/troubleshooting
from node_characterai.
try unistalling and reinstalling the puppeteer package
from node_characterai.
@realcoloride The issue is still there.
I fixed it by setting the puppeteerPath in the Requester class
puppeteerPath = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe";
from node_characterai.
Hello again, whats the problem exactly?
from node_characterai.
Related Issues (20)
- Add Auto Close Chromium Process in requester.js HOT 1
- Cannot statically analyse 'require(…, …)' in line 11 HOT 1
- Cannot create object HOT 1
- Cannot read properties of undefined (reading 'length')
- ProtocolError HOT 14
- Character AI - New TTS system HOT 20
- Chat history endpoints changed HOT 2
- authenticateAsGuest() fails with error: Failed to fetch a lazy token HOT 1
- is there a way to get the generated image from the ai? HOT 1
- Cannot read properties of undefined (reading 'status') HOT 7
- Feature request: Character information HOT 2
- Timeout ms HOT 7
- createOrContinueChat issue HOT 5
- module completely errors after 2 messages at relatively the same time HOT 1
- How do you install chromium? HOT 7
- need hep stuck with problem for 4 weeks 😭😭😭 HOT 1
- Multiple conversation HOT 3
- Error: Could not get the full reply because it was aborted. This happens often when the output was filtered for violent or explicit content. HOT 15
- Thinking about rewriting the whole package in TypeScript (2.0 roadmap) HOT 9
- Erro HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node_characterai.