anony-mpp-bot-js

1.0.5 • Public • Published

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 ---

Package Sidebar

Install

npm i anony-mpp-bot-js

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

15.5 kB

Total Files

4

Last publish

Collaborators

  • anonyfoosie