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
usage
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!");
}
})