JSPM

anony-mpp-bot-js

1.0.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 7
    • Score
      100M100P100Q27651F
    • License ISC

    This is anony mpp bot

    Package Exports

    • anony-mpp-bot-js
    • anony-mpp-bot-js/index.js

    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 (anony-mpp-bot-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    this is mpp bot by anonydiamond

    you can make bot only using index.js if you use this package

    if it shows coudnot found module

    install module using npm i module

    usage

    npm init
    npm i anony-mpp-bot-js
    node .
    const Bot = require('anony-mpp-bot-js');
    
    const bot = new Bot({
        token: "your bot token here",
        name: "your bot name here",
        color: "your bot color here (hex code)",
        room: "room name you wanna connect"
    })
    
    bot.connect();
    
    var prefix = "!"
    
    bot.client.on('a', msg => {
        let cmd =  msg.a.split(' ')[0]
    
        if (cmd === `${prefix}ping`) {
            bot.chat("Pong!");
        }
    })

    Peace ---