JSPM

djs-chatbot

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q30368F
    • License MIT

    A simple to use chatbot made in javascript. Specially made for discord bots.

    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

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