23.0.1 • Published 2 years ago

anony-mpp-client v23.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Thanks for using this package

This package connets your bot faster

-easy to use
-no errors

How to install:

NPM:

npm i anony-mpp-client

Yarn:

yarn add anony-mpp-client

USAGE

const Bot = require('anony-mpp-client');

const bot = new Bot({
    name: "your bot name here",
    color: "your bot color here (hex code)",
    channel: "enter room name here",
    logDisconnectReason: true || false, //this thing logs the reason to console if bots got disconnect
    avoidServerCrash: true || false, //this thing can handle server chrashes
    onlineMessage: 'Online', //this is optional
    logOnConnect: 'Connected' //this is optional, this thing log to the console bot got connect, by default its Connected to {room}

    //uri is optional, default: mppclone.com:8443
}, 'uri here').login('your bot token here')

var prefix = "!"

bot.client.on('a', msg => {
    let cmd =  msg.a.split(' ')[0]

    if (cmd === `${prefix}ping`) {
        bot.chat("Pong!");
    }
})

Peace ---

1.0.19

2 years ago

1.0.18

2 years ago

23.0.1

2 years ago

1.0.22

2 years ago

1.0.20

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago