Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ibaraki-douji/bing-ai

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibaraki-douji/bing-ai

Just a way to use Bing AI in NodeJS

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

#Bing AI Simple Bing AI for NodeJS

Getting started

npm i @ibaraki-douji/bing-ai --save

Usage

Import the lib

const BingAI = require('@ibaraki-douji/bing-ai').default

Init the lib

const BingAI = require('@ibaraki-douji/bing-ai').default

const ai = new BingAI("_U=123456789;");

You can get the cookies from the devtools or with an exension like EditThisCookie. The cookies needs to be formated like this : cookieName=cookieValue; cookieName2=cookieValue2; The useful cookie name is _U. WIthout it bing will think you are not logged in and will not give you the access.

Create a conversation

const BingAI = require('@ibaraki-douji/bing-ai').default

const ai = new BingAI("_U=123456789;");

ai.createConversation().then((conversation) => {
    // do something with the conversation
})

Send a message to the conversation

ai.createConversation().then((conversation) => {
    conversation.sendMessage("Hello").then((response) => {
        // do something with the response
    })
})

Get a suggestion for your current message

const ai = new BingAI("_U=123456789;");

ai.suggest("Hello").then((suggestions) => {
    // do something with the suggestions
})

Exemple

To see a real exemple of the lib, check the lib/main.js file.

More Help and Support

Discord : Ibaraki Douji#1406

Keywords

FAQs

Package last updated on 07 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc