Package Exports
- djs-chatbot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (djs-chatbot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DJS Chatbot
Table Of Contents
Installation
First install Node.JS v12+
$ npm install djs-chatbotImporting
//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);
});