- Easy to use
- Beginner friendly
- Fast
- Works with any discord.js version!
const Discord = require("discord.js");
const client = new Discord.Client();
const Chat = require("easy-discord-chatbot");
const chat = new Chat({ name: "your bot name" });
client.on("ready", () => {
console.log(`Ready! Logged in as ${client.user.tag}!`);
});
client.on("message", async message => {
if(message.channel.name === "chat" && !message.author.bot) {
let reply = await chat.chat(message.content)
message.channel.send(reply)
}
});
client.login("Your Token Here");
const Chat = require("easy-discord-chatbot");
const chat = new Chat({ name: "your bot name" });
- name: sets the name of the chatbot to provided name. By default the name is "ChatBot"
- If you are facing any type of bugs while using this package, report them here.