2.0.1 • Published 3 years ago
gale-bot v2.0.1
gale-bot
support server
functions:
1) Ai Chat
AI-Chat
const AsmartChatBot = require("gale-bot");
const AIchat = new AsmartChatBot({ name: "your bot name" });
client.on("message", async message => {
if(message.channel.id === "channel id") {
if (!message.author.bot) {
let reply = await AIchat.chat(message.content)
message.channel.send(reply).catch(error => {
return message.channel.send("this package is out of date! please update the package
});
}
}
})