-> npm install discord.js smartestchatbot <-
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
const smartestchatbot = require('smartestchatbot');
const chater = new smartestchatbot.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', async msg => {
chater.chat({message: msg, name:"SmartestChatbot", owner:"YourName", user: CoolUniqueUserId-In-NumberType}, "en").then(reply => {
console.log(reply);
msg.reply(reply)
});
});
client.login('token');