Socket
Socket
Sign inDemoInstall

discordjs-chatbot-advanced

Package Overview
Dependencies
54
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discordjs-chatbot-advanced

A powerful JavaScript library to make discord chatbot!


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 29 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc