Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including cathyjs with all npm packages installed. Try it out:

var cathyjs = require("cathyjs")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cathyjs v5.0.2

A Cool Chatbot Package Written In JavaScript.

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free