npm

Need private packages and team management tools?Check out npm Orgs. »

cathyjs

5.0.2 • Public • Published

Cathyjs

A chatbot api which is completely free. It is mainly created for discord bots. It can be used in other fields too.

Installing

npm install cathyjs

Whats new?

  • Faster response

Test it here

CATHYJS

Example

const cathyjs = require("cathyjs");
 
var reply = await cathyjs.startChatting("hello");
console.log(reply);

Example Usage - Discord

const Discord = require("discord.js");
const client = new Discord.Client();
const cathyjs = require("cathyjs");
 
client.on("ready", () => {
    console.log(`${client.user.tag} is online!`)
});
 
client.on("message", async (message) => {
    
    let channel = client.channels.get("yourchannelid")
    
    if (message.channel.id == channel.id) {
 
        let text = message.content
        channel.startTyping();
    
        var reply = await cathyjs.startChatting(`${text}`);
    
    
        channel.send(`${message.author}${reply}`);
        message.channel.stopTyping();
    }
});
 
client.login("putyourowntoken")
 

Join my discord

Discord

install

npm i cathyjs

Downloadsweekly downloads

12

version

5.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability