Giter Club home page Giter Club logo

Comments (9)

itsreimau avatar itsreimau commented on September 4, 2024

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.

realcoloride avatar realcoloride commented on September 4, 2024

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.

Naozumi520 avatar Naozumi520 commented on September 4, 2024

Any more info? Like chromium not found or what?

from node_characterai.

itsreimau avatar itsreimau commented on September 4, 2024

Any more info? Like chromium not found or what?

Nothing else, just announced that the browser failed to launch

from node_characterai.

itsreimau avatar itsreimau commented on September 4, 2024

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.

JcynR avatar JcynR commented on September 4, 2024

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.

realcoloride avatar realcoloride commented on September 4, 2024

try unistalling and reinstalling the puppeteer package

from node_characterai.

Jeffgrey91 avatar Jeffgrey91 commented on September 4, 2024

@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.

realcoloride avatar realcoloride commented on September 4, 2024

Hello again, whats the problem exactly?

from node_characterai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.