View on GitHub

Chatbot-discord

Check Out Our Public Bot :- https://dsc.gg/chatari

chatbot-Discord

F4pEry6

Downloads

Npm version

Installation

npm i chatbot-discord

Example

// 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);

Updates and Info

Support Server

~ Chatari’s Secret Hallway