djs-chatbot

1.0.1 • Public • Published

DJS Chatbot

NPM info

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);
});

Package Sidebar

Install

npm i djs-chatbot

Weekly Downloads

9

Version

1.0.1

License

MIT

Unpacked Size

2.69 kB

Total Files

4

Last publish

Collaborators

  • lejhand