1.0.2 • Published 10 months ago

bot-package v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Bot Package

This package is a bot that can be used to control a bot.

Installation

npm install bot-package

Usage

To use the Bot Package in your React application, follow these steps:

  1. Import the BotButton component:
import React from 'react';
import BotButton from 'bot-package';

function App() {
  return (
    <div>
      <h1>My App</h1>
      <BotButton
        label="Chat with Bot"
        dialogWidth={350}
        dialogHeight={500}
        onConversationComplete={(userInputs) => console.log(userInputs)}
      />
    </div>
  );
}   

export default App;

Props

PropTypeDefaultDescription
labelstring-Text to display on the button
botIconImgstring-URL of an image to use as the bot icon
dialogWidthnumber350Width of the chat dialog in pixels
dialogHeightnumber500Height of the chat dialog in pixels
marginBottomnumber20Bottom margin of the dialog in pixels
marginRightnumber20Right margin of the dialog in pixels
classNamestring-Additional CSS class for styling the button
onConversationCompletefunction-Callback function called when the conversation is complete

Website

For more detailed information about the Bot Package, including advanced usage, configuration options, and live demos, please visit our website:

https://npmbot.vercel.app

Features

  • Customizable chat interface
  • Email verification (currently not working, and advised to not use)
  • YouTube video embedding
  • Customizable styling

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago