anony-mpp-bot-js
v1.0.5
Published
This is anony mpp bot
Downloads
38
Maintainers
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!");
}
})