thisiskevin

1.0.1 • Public • Published

thisiskevin

A simple chatbot package that I made for a friend.

Install

npm i thisiskevin

Getting started

const Discord = require("discord.js");
const client = new Discord.Client();
const kevin = require("thisiskevin");

client.on("ready", () => {
    console.log(`${client.user.tag} is online!`)
});

client.on("message", async (message) => {
    
    let channel = client.channels.cache.get("CHANNEL_ID")
    
    if (message.channel.id == channel.id) {
        let text = message.content;
        channel.startTyping();
        var reply = await kevin.startchatting(`${text}`);
        channel.send(`${message.author}, ${reply}`);
        message.channel.stopTyping();
    }
});

client.login("TOKEN")

Package Sidebar

Install

npm i thisiskevin

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

14.3 kB

Total Files

4

Last publish

Collaborators

  • kian-g