discordjs-chatbot-advanced
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

djs-chatbot

A powerful JavaScript library to make discord chatbot!

Installation

Npm

npm i djs-chatbot@latest

Yarn

yarn add djs-chatbot@latest

Documentation

Follow all the documentions to make it right

Constructors

ChatBot;

This ChatBot constructor have all the methods to work.

Methods

chatBotVersion(param: null);

This "chatBotVersion" method returns the package version. And it has no parameters

chat(uid: any, message: string, callback: any)

This "chat" method is the main. It interacts with our API.

Examples

const { ChatBot } = require("djs-chatbot");

const chatbot = new ChatBot();

chatbot.chatBotVersion(); // current version of the package

chatbot.chat("1", "Hello", (response) => {
  console.log(response); // returns {"cnt":"Hi, my friend! Do you want me to tell you a story?"}
});

Note

This is just a beta version. This not not stable with discord.js yet.

Dependents (0)

Package Sidebar

Install

npm i discordjs-chatbot-advanced

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

12.4 kB

Total Files

24

Last publish

Collaborators

  • mohtasimalam