0.0.5 • Published 3 years ago

discord-chatbot-simple v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Discord-chatbot

discord-chatbot-simple is an simple chatbot feature so hurry up and use it now

Developer

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

Developer of the Package

Asjad