1.1.0 • Published 3 years ago

agnivapackage v1.1.0

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

Introduction

A simple chatbot package for your Discord.js Project! Easy to use! Includes inline Replies! Fast replies!

How To Use?

Install the package by running the command npm i agnivapackage, here's some examples for the package. Use this package as your command by

var { chatbot } = require("agnivapackage");
chatbot(message, args.join(" "));

Or You can use it in your message event file like this

client.on("message", async (message) => {
    if (!message.guild) return; //here if the message is not from a guild it will return
    if (message.author.bot) return; //Here if the message author is a bot it will return
    if (message.channel.id !== "channel-id") return; //Here if the message is executed in a channel that is not mentioned it will return
    chatbot(message, message.content, message.author.id); //it will next execute the appropriate answer :)
});