discord-chatbot-simple
v0.0.5
Published
This is an discord-chatbot-simple package which allow you to make a chat command
Downloads
7
Maintainers
Readme
Discord-chatbot
discord-chatbot-simple is an simple chatbot feature so hurry up and use it now
Installing the package ⬇️
npm i discord-chatbot-simple
Commands 📣
- chatbot feature
Example of how to use the command
const Discord = require("discord.js");
const client = new Discord.Client();
const Chatbot = require("discord-chatbot-simple");
const chat = new Chatbot({ 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");
Constructor options:
const Chatbot = require("discord-chatbot-simple");
const chat = new Chatbot({ name: "your bot name" });
My Discord bot
Multipurpose Bot with 500+ commands zenitsu
Note
Don't forget to install the latest version of it