0.0.4 • Published 4 years ago
polar-chatbot v0.0.4
A Simple AI Chatbot Made By Polar
Features
- Easy To Use
- Beginner Friendly
- Fast
- Works With All Versions Of Discord.JS
Example code:
const Discord = require("discord.js");
const client = new Discord.Client({intents: 32767});
const Chat = require("polar-chatbot");
const chat = new Chat({ name: "YOUR BOT NAME" });
client.on("ready", () => {
console.log(`Logged Into: ${client.user.tag}`);
});
client.on("messageCreate", async message => {
if(!message.author.bot) {
let response = await chat.chat(message.content)
message.reply({content: response})
}
});
client.login("YOUR BOT TOKEN");
Conclusion
If You Have Any Error Join My Discord Server Here
0.0.4
4 years ago