Check Out Our Public Bot :- https://dsc.gg/chatari
This is a fork of the original project here
npm i chatbot-discord
// import packages
const Chat = require("chatbot-discord");
const Discord = require('discord.js');
const client = new Discord.Client();
//assign var
let uid = message.author.id
let msg = message.content
//setup chat
const chat = new Chat({
user: uid
name: "Chatari"//name of bot
});
//main chat
chat.chat(msg).then(reply => {
message.channel.send(reply)
})
//bot login
client.login(process.env.token);