1.7.0 • Published 12 months ago

carter-extended.js v1.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Carter-Extended.js

Changelog

carter-extended.js is a module, simplifing usage for beginners, which want to make a personal assistant. It has a ton of useful features such as sending whatsapp messages, calling the api using one line of code and more. (Made for JS)

Carter agent. In order for it to work you'll need to create a Carter agent.

Please note: This module is still Work-In-Progress, expect bugs

Installation

  npm install carter-extended.js

Basic Usage

  const { Carter } = require("carter-extended.js")



  // Initializing:


  Carter(apikey);
  
                                           

Send a message to Carters API

  //Asking the AI and sending it to WhatsApp:
  
  let response = await Carter.chat(message, playerid, speak, number)

Carter.chat() sends a fetch request. The "playerid" arg can be null, or any string. The "speak" arg can be any boolean. The "number" is the telephone number (Example: 441134960000) All arguments are optional, except for the message one.

  //Opener
  
  let response = await Carter.chat(userid)

Carter.opener() sends a fetch request, which can be used for a greeting. The "userid" arg. is optional.

  //WhatsApp
  
  let response = await Carter.whatsApp(number,message)
1.7.0

12 months ago

1.6.0

12 months ago

1.5.0

12 months ago

1.4.0

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago