djs-chatbot
v1.0.1
Published
A simple to use chatbot made in javascript. Specially made for discord bots.
Downloads
8
Maintainers
Readme
DJS Chatbot
Table Of Contents
Installation
First install Node.JS v12+
$ npm install djs-chatbot
Importing
//JAVASCRIPT
const chat = require('djs-chatbot');
//TYPESCRIPT
import chat from 'djs-chatbot';
Support
Join the support discord server
Examples
Chatbot Command
const lmao = require("djs-chatbot");
module.exports = {
name: "chatbot",
run: async (client, message) => {
const reply = await lmao.chat({ Message: "MESSAGE HERE" });
return message.channel.send(reply);
};
};
Always On Chatbot
const lmao = require("djs-chatbot");
client.on("message", async message => {
const reply = await lmao.chat({ Message: "MESSAGE HERE" });
return message.channel.send(reply);
});